tags:

views:

212

answers:

2

Is there any method to align toast message in application.By default it always appears at the bottom of application. i did it like this... Toast.makeText(this, "hello !", Toast.LENGTH_LONG).show(); Thank you

+3  A: 

public void setGravity (int gravity, int xOffset, int yOffset)

Vishal
Hi i did like this and now its working fine.Toast toast = Toast.makeText(this, "Welcome", Toast.LENGTH_LONG);toast.setGravity(Gravity.TOP | Gravity.LEFT, 40, 60);toast.show();
RBADS
njoy buddy.....
Vishal