Try this to show toast at top :
String text = “example toast text!”;
Toast toast = Toast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT);
/* Positioning your Toast */
int offsetX = 0, offsetY = 0;
toast.setGravity(Gravity.TOP, offsetX, offsetY);
toast.show();
Refer this link for more customization of Toast.