JohnC Expert Licensed User Longtime User Dec 14, 2017 #1 It appears that one of the only things you can do with the scrollview control in the designer is create a layout that contains just a full-size scrollview on it. It's crazy that I have to create two separate layouts to have a scrollable activity: Code: Activity.LoadLayout("help_sv") sv.Panel.LoadLayout("help_why") What would be really cool is if I could place a scrollview in a layout using the designer, and then be able to place other views inside the scroll view using the designer and these child views will be automatically placed inside the scrollview's internal panel, and have the scrollview's internal panel auto adjust it's size for all the views. This way I only need to load in one layout: Code: Activity.LoadLayout("help_sv") And I would only need to adjust the scrollviews height property to create an activity that can easily adapt to reduced visibility as when the keyboard is displayed.
It appears that one of the only things you can do with the scrollview control in the designer is create a layout that contains just a full-size scrollview on it. It's crazy that I have to create two separate layouts to have a scrollable activity: Code: Activity.LoadLayout("help_sv") sv.Panel.LoadLayout("help_why") What would be really cool is if I could place a scrollview in a layout using the designer, and then be able to place other views inside the scroll view using the designer and these child views will be automatically placed inside the scrollview's internal panel, and have the scrollview's internal panel auto adjust it's size for all the views. This way I only need to load in one layout: Code: Activity.LoadLayout("help_sv") And I would only need to adjust the scrollviews height property to create an activity that can easily adapt to reduced visibility as when the keyboard is displayed.
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2017 #2 See my answer to your question about TabStrip + ScrollViews + Keyboard changes: https://www.b4x.com/android/forum/threads/tabstrip-scrollview-keyboard-height.87247/#post-552171 You can use a single layout with a ScrollView and load it multiple times. In most cases it is better to separate the ScrollView from the inner layout. It is more flexible this way.
See my answer to your question about TabStrip + ScrollViews + Keyboard changes: https://www.b4x.com/android/forum/threads/tabstrip-scrollview-keyboard-height.87247/#post-552171 You can use a single layout with a ScrollView and load it multiple times. In most cases it is better to separate the ScrollView from the inner layout. It is more flexible this way.