private Toast toast = null;
private void showToast(String msg) {
if (toast != null)
toast.cancel();
toast = Toast.makeText(FileActivity.this, msg, Toast.LENGTH_SHORT);
toast.show();
}
Toast多次显示
最新推荐文章于 2024-05-14 11:32:38 发布
private Toast toast = null;
private void showToast(String msg) {
if (toast != null)
toast.cancel();
toast = Toast.makeText(FileActivity.this, msg, Toast.LENGTH_SHORT);
toast.show();
}