Trying to use ScrollView with the designer and I failed to make it scroll
I build a screen full of UI elements and all it contained in two panels
I want to add a Scroll view that its height is as high as the overall components
and in case the screen is smaller than that the user can just scroll up and down
I added the scroll view (from the designer menu) , set its size etc
but I do not have an access to its panel (to add the UI components as childs) - am I doing something wrong ?
I went to the code activity create, after the loadLayout and did this
nothing happened (well I see a scroll and its moving but nothing is scrolled up / down
I tried to build the scrollview manually in code not in the designer, and to remove the designer built views from the activity (without that it did not worked as well)
not working
what I'm I doing wrong ?
thanks:sign0163:
I build a screen full of UI elements and all it contained in two panels
I want to add a Scroll view that its height is as high as the overall components
and in case the screen is smaller than that the user can just scroll up and down
I added the scroll view (from the designer menu) , set its size etc
but I do not have an access to its panel (to add the UI components as childs) - am I doing something wrong ?
I went to the code activity create, after the loadLayout and did this
B4X:
MainPanel.Panel.AddView(ConfPanel,ConfPanel.Left, ConfPanel.Top,ConfPanel.Width,ConfPanel.Height)
MainPanel.Panel.AddView(InfoPanel,InfoPanel.Left,InfoPanel.Top,InfoPanel.Width,InfoPanel.Height)
nothing happened (well I see a scroll and its moving but nothing is scrolled up / down
I tried to build the scrollview manually in code not in the designer, and to remove the designer built views from the activity (without that it did not worked as well)
B4X:
MainPanel.Initialize(100)
MainPanel.Panel.AddView(ConfPanel,ConfPanel.Left, ConfPanel.Top,ConfPanel.Width,ConfPanel.Height)
MainPanel.Panel.AddView(InfoPanel,InfoPanel.Left,InfoPanel.Top,InfoPanel.Width,InfoPanel.Height)
Activity.RemoveAllViews
Activity.AddView(MainPanel, 0, 0, 100%x, 100%y*2)
not working
what I'm I doing wrong ?
thanks:sign0163: