关于ListView的getChildAt(index)
来源:互联网 发布:睿至大数据的骗局 编辑:程序博客网 时间:2024/05/29 08:35
1. getChildAt(index) 只能获取当前可显示的控件,这里的index是当前所有可显示的控件的一个排序(0~M)值中的一个;
2 . 与getFirstVisiblePosition(),getLastVisiblePosition()返回的position值是不同的,position是ListView所有item的固定序号(0~N)。所以M<=N。注意ListView含有header,header的位置是0,其他item的位置+1。
3. 当我们要获取当前可见控件时,用:getChildAt(position - ListView.getFirstVisiblePosition())。
4. 同样,getChildCount()得到的是M,getCount()得到N。
1 0
- 关于ListView的getChildAt(index)
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用
- ListView中getChildAt(index)的使用
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- ListView中getChildAt(index)的使用注意事项
- 关于Listview的getChildAt方法
- 【android】ListView中getChildAt(index)的真正含义
- Android——ListView中getChildAt(index)的使用注意事项
- Spring AOP
- 微信公众帐号开发教程第2篇-微信公众帐号的类型(普通和会议)
- retext出现Could not parse file contents, check if you have the necessary module installed解决方案
- Android简易任务管理器
- 利用文件的路径来操作文件
- 关于ListView的getChildAt(index)
- 2014.10.20学习总结
- 微信公众帐号开发教程第3篇-开发模式启用及接口配置
- 《The Pragmatic Programer》 reading notes
- 金色十月线上编程比赛第一题:小女孩数数
- python 初学
- HDU 2045 不容易系列之(3)—— LELE的RPG难题
- java post 获取相应内容和状态码
- Java:GOF的23种设计模式(下)