private Toast mToast = null;
public void showTextToast(String msg) { if (mToast == null) { mToast = Toast.makeText(mContext, msg, Toast.LENGTH_SHORT); } else { mToast.setText(msg); } mToast.show(); }
本文共 267 字,大约阅读时间需要 1 分钟。
private Toast mToast = null;
public void showTextToast(String msg) { if (mToast == null) { mToast = Toast.makeText(mContext, msg, Toast.LENGTH_SHORT); } else { mToast.setText(msg); } mToast.show(); }
转载于:https://www.cnblogs.com/wxmdevelop/p/5543693.html