Toast toast =new Toast(mContext);
toast.setText("");//android 4.2及以上系统会报错
解决办法:
Toast toast = Toast.makeText(mContext, "", Toast.LENGTH_SHORT);
toast.setText("");
Toast toast =new Toast(mContext);
toast.setText("");//android 4.2及以上系统会报错
解决办法:
Toast toast = Toast.makeText(mContext, "", Toast.LENGTH_SHORT);
toast.setText("");
本文标题:Toast报This Toast was not created
本文链接:https://www.haomeiwen.com/subject/qmjmuttx.html
网友评论