public class ToastUtils {
private static Toast toast = null;
public static void showToast(Context context,String msg){
if(toast == null){
toast =Toast.makeText(context, msg, Toast.LENGTH_SHORT);
}
toast.setText(msg);
toast.show();
}
}
ToastUtils
最新推荐文章于 2024-06-24 13:26:02 发布