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 584 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.
Bryan Herbst
- 65,094
- 10
- 126
- 115