Android Question scrollview get index panels

scsjc

Well-Known Member
Licensed User
Longtime User
Hello,
how is best method to get of index from current panel display on screen, from a scrollview?

thanks
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Iterate through all Views and count the panels
above will only work for the COMPLETE scrollview.
The number of view "on the screen" you need to calculate by yourself. YOU know the size of the panels added you added.

I´m not sure but i think you don´t know which is the topmost viewed panel on the screen to calculate it.
So i guess it will be complicated to get that value
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
sorry im wrong in my question.... i want get INDEX of panle on current display ....
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User

with height from panels...count panels and get position no????
thanks man !!!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…