首页 > 移动平台 > 详细

android.content.res.Resources$NotFoundException: String resource ID #0xb

时间:2014-12-08 21:15:38      阅读:434      评论:0      收藏:0      [点我收藏+]

错误情景:

holder.comment.setText(mlist.get(position).getCommentCount());

错在把TextView的

setText(int resid) //跑到工程下去找一个对应的resource的id

setText(CharSequence text)
方法混淆。
解决方法:在int后面加上""就可以了。

android.content.res.Resources$NotFoundException: String resource ID #0xb

原文:http://www.cnblogs.com/xingyyy/p/4151882.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!