标签:alt lin position scroll view ble index code listview
public int getScrollY() {
View c = mListView.getChildAt(0);
if
(c ==
null
) {
return
0;
}
int firstVisiblePosition = mListView.getFirstVisiblePosition();
int top = c.getTop();
return
-top + firstVisiblePosition * c.getHeight() ;
}
标签:alt lin position scroll view ble index code listview
原文地址:http://www.cnblogs.com/wikiki/p/6171004.html