I'm (try) to build a preferences panel for my app and i would like to make vertical scrollable TabView panel, but i can't get it to work... is it possible?? :sign0104:
For i=0 To i1
Dim lbl As Label
lbl.Initialize("lbl1")
lbl.Color = Colors.Blue
lbl.Tag=i
lbl.Text = "Test1 line # "&i
scvTest1.Panel.AddView(lbl,0,i*lblHeight1,100%x,lblHeight)
scvTest1.Panel.Height = i1*lblHeight1
Next
In the above code (taken from the tabhost/scrollview demo), why is
B4X:
scvTest1.Panel.Height = i1*lblHeight1
in the For loop. Doesn't this just set the height of the scrollview and use variables set outside the loop therefore setting with same value each time? That's how I read it anyway.
Also, I Don't see any code to set the width of the scrollviews. Is this not needed? Does it default to 100%x?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.