Hi...its me again!:sign0148::BangHead::sign0013:
So... I added a Horizontal Scroll View in the designer, along with 4 Buttons... all childs of the "activity" as we cannot set the views directly to the Scroll View's panel...
Then I added this code:
BUT.... The Buttons don't show up!
What's wrong with my code?:sign0163:
So... I added a Horizontal Scroll View in the designer, along with 4 Buttons... all childs of the "activity" as we cannot set the views directly to the Scroll View's panel...
Then I added this code:
B4X:
Button1.RemoveView
Button2.RemoveView
Button3.RemoveView
Button4.RemoveView
HorizontalScrollView1.Initialize(96.6%x, "HorizontalScrollView")
HorizontalScrollView1.Panel.AddView(Button1, 0,0,20.7%x,20.7%x)
HorizontalScrollView1.Panel.AddView(Button2, 27.6%x,0,20.7%x,20.7%x)
HorizontalScrollView1.Panel.AddView(Button3, 51.75%x,0,20.7%x,20.7%x)
HorizontalScrollView1.Panel.AddView(Button4, 75.9%x,0,20.7%x,20.7%x)
BUT.... The Buttons don't show up!
What's wrong with my code?:sign0163: