Toast toast =
Toast.makeText(this, "toast content here", Toast.LENGTH_SHORT);
// or something alike
toast.setGravity(Gravity.TOP | Gravity.CENTER, 80, 80);
toast.show();
Toast.makeText(this, "toast content here", Toast.LENGTH_SHORT);
// or something alike
toast.setGravity(Gravity.TOP | Gravity.CENTER, 80, 80);
toast.show();
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/86970/viewspace-660521/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/86970/viewspace-660521/