Preferred method for using ScrollView

Alwinl

Member
Licensed User
Longtime User
Hi,
I have looked at several posts/tutorials about using the scrollview but am confused by the number of options & would appreciate any input on which way is best.
I just have a simple screen with several labels and text boxes one below the other which will be longer than most devices and want to be able to scroll this - have used the code below:

Activity.LoadLayout("Settings_Scroll") 'Load a single scrollview to fill the activity
scroller.Panel.LoadLayout("Settings_1") 'Load my views into the scroll view panel

As per the recommendations I have read I would then use scripting in the layouts to cater for variances in device size/resolutions. Am I approaching this the right way?
 

Alwinl

Member
Licensed User
Longtime User
Thanks Erel. So if one layout is for my scrollview(A) and one layout has my text boxes(B), would I create a custom-sized layout variant for (B) that is large enough to hold all my controls ie. it's not really related to any real device size.
 
Upvote 0
Top