开发者

ListView set first visible position

开发者 https://www.devze.com 2023-02-24 22:37 出处:网络
In ListView I can get index of the first item displayed by using getFirstVisiblePosition() How can I set an item at a particular index to display in the first po开发者_Python百科sition - I want somet

In ListView I can get index of the first item displayed by using getFirstVisiblePosition() How can I set an item at a particular index to display in the first po开发者_Python百科sition - I want something like setFirstVisiblePosition( int index )


You can use setSelection(index) so the display will jump to the index you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号