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
the situation does not change, I would need this result because I have a scrollview in a form landscape
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Orientation is not important. Try attached project (orientation of activity is landscape)
Or do you mean HorizontalScrollView ?
 

Attachments

  • test.zip
    7.8 KB · Views: 139
Last edited:
Upvote 0

Matteo Granatiero

Active Member
Licensed User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…