美文网首页
Toast报This Toast was not created

Toast报This Toast was not created

作者: 我才是张雷 | 来源:发表于2016-11-01 12:57 被阅读0次

    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