我写了一个listview 包含多个显示图片的item,我如何才能只改变其中某item的一个图片其他的不变,假设我知道该item的id。。PS:并不是点击该item才改变,而是通过我的程序其他部分产生的一个值来判断是否要改变的
解决方案 »
- 收短信英文没问题.中文光显示???三个问号..如何处理
- 点击imageview关闭dialog就报错?
- Android CTS4.0.3测试时到这个测试项时老是超时怎么办啊?
- xml添加了发送短信权限,还是不能发送短信
- cygwin
- 如何不通过Intent跳转把上一个页面的数据传过来?
- C++Builder如何和网站进行HTTPS的POST和GET?
- 通过智能手机外接一个usb UVC的开发板,远程监控【事成有报酬】
- 关于Android浏览器登录QQ旗下网页时出现的问题
- 在程序中使用无障碍服务accessibilityservice时,希望实现截图功能,该怎么做?
- 关于ViewPager的滑动的动画效果
- 这个功能怎么实现
Callback method to be invoked when an item in this AdapterView has been clicked.Implementers can call getItemAtPosition(position) if they need to access the data associated with the selected item.Parameters
parent The AdapterView where the click happened.
view The view within the AdapterView that was clicked (this will be a view provided by the adapter)
position The position of the view in the adapter.
id The row id of the item that was clicked.这里面的这个View 就是你需要的那个layout layout.findViewById 我就不用多说了吧
public Object getItemAtPosition (int position)Added in API level 1
Gets the data associated with the specified position in the list.Parameters
position Which data to get
Returns
The data associated with the specified position in the list忽略上面两个 对于错误答案请您见谅
可以具体点么。比如我的item对应的配置文件为A.XML,然后我想改变其中的ImageView