android Toast 自定义显示位置 custom position

 Toast toast =    Toast.makeText(this, "toast content here",  Toast.LENGTH_SHORT);

// or something alike
toast.setGravity(Gravity.TOP | Gravity.CENTER, 80, 80);

toast.show();

 

http://space.itpub.net/86970/viewspace-660521

你可能感兴趣的:(android)