Android Question CustomListView - List not showing programmatic Jump/Scroll

Misterbates

Active Member
Licensed User
I'm wanting to include CustomListView in a project but I need to be able to load some list items then JumpToItem to have a specific item shown from the items I've loaded.

Adding the following into Activity_Resume in the CustomListView example has no visible effect. Is there something else I should be doing to programmatically show the last list item?

B4X:
Sub Activity_Resume
    clv1.JumpToItem(clv1.GetSize - 1)
    clv1.ScrollToItem(clv1.GetSize - 1)
End Sub
 

mangojack

Expert
Licensed User
Longtime User
try ...
B4X:
Sleep(100)
clv1.ScrollToItem(clv1.GetSize -1)
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
It takes ScrollView a few milliseconds to "layout itself".

After another day of .." Punching away with B4A" It will only take a few milliSeconds to "layout myself" :D

Sorry .... could't resist.
 
Last edited:
Upvote 0
Top