本文地址:http://blog.csdn.net/you_and_me12/article/details/7271006
在ListView中,使用getChildAt(index)的取值,只能是當前可見區域(列表可滾動)的子項!
1、所以如果想獲取前部的將會出現返回Null值問題;
2、getChildCount跟getCount獲取的值將會不一樣(數量多時);
3、如果使用了getChildAt(index).findViewById(...)設置值的話,滾動列表時值就會改變了。需要使用getFirstVisiblePosition()獲得第一個可見的位置,在用當前的position-它,在用getChildAt取值!
都是文字,不貼代碼了。