码迷,mamicode.com
首页 > 移动开发 > 详细

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

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

标签:android   blog   io   ar   os   for   java   on   div   

错误情景:

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

标签:android   blog   io   ar   os   for   java   on   div   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!