// 弹出提示
public static void AlertShort(Activity act, String str, Integer type) {
Toast toast = null;
if (type == 1) {
toast = Toast.makeText(act, str, Toast.LENGTH_SHORT);
} else {
toast = Toast.makeText(act, str, Toast.LENGTH_LONG);
}
toast.setGravity(Gravity.BOTTOM, 0, 50);
toast.show();
}
Toast
最新推荐文章于 2013-07-08 23:02:22 发布