Search code examples
androidgridviewscroller

Grid View Scroller


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?


Solution

  • 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