W/ResourceType: No package identifier when getting value for resource number 0x00000034
2017-05-04 09:40
1591 查看
问题已经解决,之前写成了 tabUnReadMsg.setText(count);
setText方法里面应该传入string类型的字串,而不是传int型字串
public void updateTabUnReadMsg(int which,int count) {
if(count <= 0){
return;
}
View v = tabsContainer.getChildAt(which);
if (v instanceof TextView) {
Log.i("wangqx", "287 updateTabUnReadMsg");
} else if (v instanceof ViewGroup) {
mWhich = which;
Log.i("wangqx", "326 count="+count);
mCount = count;
Log.i("wangqx", "289 updateTabUnReadMsg");
TextView tabUnReadMsg = (TextView) v.findViewById(R.id.tv_unreadmsg);
Log.i("wangqx", "291 updateTabUnReadMsg");
tabUnReadMsg.setVisibility(View.VISIBLE);
Log.i("wangqx", "293 updateTabUnReadMsg");
tabUnReadMsg.setText(String.valueOf(count));
}
setText方法里面应该传入string类型的字串,而不是传int型字串
public void updateTabUnReadMsg(int which,int count) {
if(count <= 0){
return;
}
View v = tabsContainer.getChildAt(which);
if (v instanceof TextView) {
Log.i("wangqx", "287 updateTabUnReadMsg");
} else if (v instanceof ViewGroup) {
mWhich = which;
Log.i("wangqx", "326 count="+count);
mCount = count;
Log.i("wangqx", "289 updateTabUnReadMsg");
TextView tabUnReadMsg = (TextView) v.findViewById(R.id.tv_unreadmsg);
Log.i("wangqx", "291 updateTabUnReadMsg");
tabUnReadMsg.setVisibility(View.VISIBLE);
Log.i("wangqx", "293 updateTabUnReadMsg");
tabUnReadMsg.setText(String.valueOf(count));
}
相关文章推荐
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- W/ResourceType: No package identifier when getting value for resource number 0x00000000
- No package identifier when getting value for resource number 0x0000001c
- 更新SDK后错误处理:W/ResourceType(18775): No known package when getting value for resource number 0x7f050000
- no package identifier when getting value for resource number 0x00000005
- No package identifier when getting value for resource number
- No known package when getting value for resource number 0xfe080009
- No package identifier when getting name for resource number 0x00000000
- No package identifier when getting value for resource
- No package identifier when getting value for resource
- No package identifier when getting value for resource num 0x00000000 【安卓资源找不到】
- No package identifier when getting value for resource num 0x00000000 【安卓资源找不到】
- Android异常01----No package identifier when getting name for resource number 0x00000000 警告提示
- No known package when getting name for resource number 0x0be977f2
- Android自定义View报 No resource identifier found for attribute ‘’ in package ""
- No resource identifier found for attribute 'showAsAction' in package
- error: No resource identifier found for attribute 'dropDownHorizontalOffset' in package 'android'
- android自定义View时报 error: No resource identifier found for attribute ‘XXX’ in package 'XXX'
- android自定义View时报error: No resource identifier found for attribute ‘XXX’ in package ‘