I want to get the items which are on the screen. For example: item No.4 and part of item No.5 can be seen. How to get the Views of the two?
Asked
Active
Viewed 569 times
1 Answers
1
You can call getFirstVisiblePosition()
to get the index of the first visible item on screen, and getLastVisiblePosition()
to get the index of the last item on screen.
![](../../users/profiles/1253844.webp)
Bryan Herbst
- 62,910
- 10
- 119
- 113