0

I have made a horizontal listview with ArrayAdapter as in the picture below.

enter image description here

There will be always 3 items on screen. But there is a problem. I need to get which three items are on screen. With getView function, I can only get last activated item.

Is there a way that I can get which items are on screen ?

irukeru
  • 509
  • 1
  • 10
  • 26

1 Answers1

2

try this

ListView.getFirstVisiblePosition()

ListView.getLastVisiblePosition()

you may refer answer here as well

Community
  • 1
  • 1
Sourabh Saldi
  • 3,567
  • 6
  • 34
  • 57