开发者

Grid View Scroller

开发者 https://www.devze.com 2023-02-02 16:07 出处:网络
开发者_Python百科I am new to Andriod, I have n of TextView inside the GridView, which comes with its own scroller, I need a method which tell whether a particular View in the GridView is Visible in th
开发者_Python百科

I am new to Andriod, I have n of TextView inside the GridView, which comes with its own scroller, I need a method which tell whether a particular View in the GridView is Visible in the View Port?


you can use one of the adapter methods: refer to this link

public int getFirstVisiblePosition ()

Since: API Level 1 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

0

精彩评论

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