Android Question clv.ScrollToItem (or JumpToItem) works, but only the second time through

Scene:
A B4XPage with a couple of customlistviews. They are filled, one item drawn highlighted, and then ScrollToItem called to get that item into view. All this happens in the B4XPage_Appear.
It doesn't scroll the highlighted item into view the first time that page is shown, but works fine the second and subsequent times. (The right item is highlighted every time, so I know that works.)
Any ideas?
 

DonManfred

Expert
Licensed User
Longtime User
The first item is always visible. You are already at that item.
What should scrolltoitem do on this item?
 
Upvote 0
My lists have more items than can fit on the screen. The item being scrolled to is (usually) off the screen. The strange thing is that it works fine except on the first time that page appears. I know the index is correct because it's the one that gets highlighted.
 
Upvote 0
Top