我写了一个listview 包含多个显示图片的item,我如何才能只改变其中某item的一个图片其他的不变,假设我知道该item的id。。PS:并不是点击该item才改变,而是通过我的程序其他部分产生的一个值来判断是否要改变的
解决方案 »
- android4.0编译问题Fatal error: invalid -march= option: `armv7-a'
- android滑动指导页求救
- Android蓝牙开发,调试的时候只能在真机上调试吗?
- 手机如何进行wlan连接联网交互
- 我想在apk中放入一些配置文件,安装apk时这些文件能安装到指定目录,这个具体怎么搞啊?
- 如何用代码控制截图,手机端和pc端都可以
- 有人做过图书搜索的吗?
- 关于Intent程序中给自己发送接收短信的广播。
- 如何控制Listview每列的宽度自适应这列最长的内容?
- 安卓系统运行的垃圾过多问题如何解决?
- 关于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