Android Question Set FirstVisibleIndex of CustomListView

AHilberink

Active Member
Licensed User
Longtime User
Hi,

Is it possible to set the FirstVisibleIndex without jumping/scrolling to a row? I can only find the get function.
Why? I want to have at least 4 rows left visible from my current row.

Kind regards,
André
 

AHilberink

Active Member
Licensed User
Longtime User
This is the same thing. It will bring the item to the top, unless it is close to the end of the list and the item cannot be pushed to the top.
Yes, I know. The only problem is, the selected one will be on top. I need the selected one (the one I jump to) in the middle of the list. Of course depending on the begin and the end of the list.

Will this be possible?
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Will this be possible?
Check the example by the powerhouse and seasoned veteran @William Lancee in this thread. When you scroll it always snaps to the middle of the screen. The example applies to a horizontal xClv, but modifiable to a vertical xClv. Does this example suit you. It may not be exactly what you asked for, but, it might help you some.
 
Last edited:
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Check the example by the powerhouse and seasoned veteran @William Lancee in this thread. When you scroll it always snaps to the middle of the screen. The example applies to a horizontal xClv, but modifiable to a vertical xClv. Does this example suit you. It may not be exactly what you asked for, but, it might help you some.
Hi Mahares,

Thank you. I already saw this thread, but with this the selected row is changed. I only want to change the visible part of the CLV.

Kind regards,
André
 
Upvote 0
Top