【原创】实用API拾遗_持续更新

时间:2014-08-08 17:28:56   收藏:0   阅读:244

 

1.int android.widget.AbsListView.pointToPosition(int x, int y):将坐标映射成list位置序号!!    2014.08.08

Maps a point to a position in the list.

Parameters:
x X in local coordinate
y Y in local coordinate
Returns:
The position of the item which contains the specified point, or INVALID_POSITION if the point does not intersect an item.

2.int android.widget.AdapterView.getFirstVisiblePosition():得到屏幕上list第一个可见的item  2014.08.08

Returns the position within the adapter‘s data set for the first item displayed on screen.

Returns:
The position within the adapter‘s data set

 

【原创】实用API拾遗_持续更新,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!