解决方案 »
- No resource identifier found for attribute 'xlargeScreens' in package 'android'
- 请教Android大牛!编写Android Camera相机相关功能程序,出现了一个十分奇怪的问题(关于setType这个过期方法),搞了几天没解决
- 请教异常的原因No Activity found to handle Intent { act=android.intent.action.VIEW dat=w
- android 源码下编译自己的项目,mm时提示make: *** 没有规则可以创建...需要的目标“out/target/product/generic/ob
- 怎样在代码中把framelayout里的某一层放到最顶层
- 100分求解:列举出系统中所有的SD(TF)卡,不管是内置的还是外置的
- Android测试开发工程师 VS Android开发工程师
- 新手询问,新建模拟器
- andorid 真机usb调试的时候,时间过长的话,手机上的应用会显示是否等待或者关闭,调试就断开了
- android 布局的问题
- android jar包 导出 和 引用
- 安卓中支持linux api shell吗?
holder.img = (ImageView) convertView.findViewById(R.id.image);
R.id.image是不是在布局文件activity_main里
不再的话holder.img会为空
convertView不为空就不会报错和image在不在都没关系,但R.id.image不在R.layout.activity_main的话得到的holder.img依然是空
convertView不为空就不会报错和image在不在都没关系,但R.id.image不在R.layout.activity_main的话得到的holder.img依然是空
恩,是这个理,那就是赋值的时候报的