Android Question Set the start Scroll ScrollView from the end of the list?

Matteo Granatiero

Active Member
Licensed User
Set the start scroll ScrollView from the end of the list, that is "on the contrary". To be clearer I would like the listview to scroll from bottom to top
 

Semen Matusovskiy

Well-Known Member
Licensed User
Let's say the name of ScrollView is scrollviewInstance. After you completely filled a scrollview, add following code
B4X:
Sleep (1)
scrollviewInstance.ScrollToNow (scrollviewInstance.Panel.Height - scrollviewInstance.Height)
 
Upvote 0

Matteo Granatiero

Active Member
Licensed User
Let's say the name of ScrollView is scrollviewInstance. After you completely filled a scrollview, add following code
B4X:
Sleep (1)
scrollviewInstance.ScrollToNow (scrollviewInstance.Panel.Height - scrollviewInstance.Height)
the situation does not change, I would need this result because I have a scrollview in a form landscape
 
Upvote 0

Matteo Granatiero

Active Member
Licensed User
Let's say the name of ScrollView is scrollviewInstance. After you completely filled a scrollview, add following code
B4X:
Sleep (1)
scrollviewInstance.ScrollToNow (scrollviewInstance.Panel.Height - scrollviewInstance.Height)
now I try again and it works, but I did not put it in Activity created but in a Button_Click
Thank youu.
 
Upvote 0
Top