private Toast toast = null;
private void showTextToast(String msg)
{
if(toast == null)
{
toast = Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT);
}
else
{
toast.setText(msg);
}
toast.show();
}
Android中Toast重复显示问题解决
最新推荐文章于 2021-05-27 03:43:58 发布