Hi guys,
I am a little in trouble trying to make panels scrollable, in order to adapt it to small displays.
I've tried to search in the forum but I didn't find anything applicable, tried also to play a bit with scrollview but got no results. (BTW this could be my fault, I am quite new in B4A), hope someone will help me.
Actually I am using Erel's LoadLayoutToPanel Sub taken from HERE to load and remove panels from main activity:
My pages contains buttons, checkboxes, labels and edittext and have been created with the Designer tool specifying only the "AutoScaleAll" option.
I'd like to make them scrollable vertically if necessary.
Any help/suggestion will be appreciated.
Thank you and Happy Christmas everybody!
Claudio.
I am a little in trouble trying to make panels scrollable, in order to adapt it to small displays.
I've tried to search in the forum but I didn't find anything applicable, tried also to play a bit with scrollview but got no results. (BTW this could be my fault, I am quite new in B4A), hope someone will help me.
Actually I am using Erel's LoadLayoutToPanel Sub taken from HERE to load and remove panels from main activity:
B4X:
Sub Globals
Dim Panel1 As Panel
End Sub
Sub Activity_Create (FirstTime As Boolean)
LoadLayoutToPanel("layout1")
End Sub
Sub LoadLayoutToPanel (Layout As String)
If Panel1.IsInitialized then
Activity.RemoveViewAt(0)
End If
Panel1.Initialize("")
Panel1.LoadLayout(Layout)
Activity.AddView(Panel1, 0, 0, 100%x, 100%y)
End Sub
My pages contains buttons, checkboxes, labels and edittext and have been created with the Designer tool specifying only the "AutoScaleAll" option.
I'd like to make them scrollable vertically if necessary.
Any help/suggestion will be appreciated.
Thank you and Happy Christmas everybody!
Claudio.
Last edited: