Android Question How do I set the inner height of a scrollview as B4Xview?

App Dude

Active Member
Licensed User
Longtime User
My scrollview is defined as B4XView to be more cross-platform, and I can't find how to set the inner height in code when it's defined this way.
Help please.
 

App Dude

Active Member
Licensed User
Longtime User
Thanks... this works and does everything I need.
But can you explain why CustomListView is better? I'm not that knowledgeable on the intricate details of these.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
But can you explain why CustomListView is better?
Mainly I wanted to avoid you writing specific code depending on the language. ScrollView exists in B4A and B4I, but in B4J there is ScrollPane.
This is also because I did not know:
To be cross-plaform use:
B4X:
ScrollView1.ScrollViewContentHeight = xx
Without that, you would have had to write a series of #IF B4A, B4I ELSE to set that height and convert using As(ScrollPane), etc.

I'm seeing that there is also:
B4X:
ScrollView1.ScrollViewInnerPanel


CustomListView allows you to manage items more easily - but ScrollView allows you more freedom.
 
Upvote 0
Top