A Alwinl Member Licensed User Longtime User Aug 5, 2013 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2013 #2 Am I approaching this the right way? Click to expand... Yes. Upvote 0
A Alwinl Member Licensed User Longtime User Aug 6, 2013 #3 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
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.
Erel B4X founder Staff member Licensed User Longtime User Aug 7, 2013 #4 Yes. The variant size is also not important. Just make sure that the scale is 1.0. Upvote 0
A Alwinl Member Licensed User Longtime User Aug 7, 2013 #5 Thanks Erel, I'll give it a bash. Upvote 0