Alexander Stolte Expert Licensed User Longtime User Dec 27, 2016 #1 Hey, How i can generating panels in a scrollview? Without the designer. Greetings
eurojam Well-Known Member Licensed User Longtime User Dec 27, 2016 #2 here we go...is the same like with other views: Code: ... Panel0=ScrollView1.Panel 'get the internal scrollview panel Dim panel1 As Panel Dim PanelTop, PanelHeight As Int PanelHeight=85dip PanelTop = 0 Panel0.AddView(panel1,0,PanelTop,ScrollView1.Width,PanelHeight) ... you can do this within a for loop and add the panel1 several times in different PanelTop Positions... Upvote 0
here we go...is the same like with other views: Code: ... Panel0=ScrollView1.Panel 'get the internal scrollview panel Dim panel1 As Panel Dim PanelTop, PanelHeight As Int PanelHeight=85dip PanelTop = 0 Panel0.AddView(panel1,0,PanelTop,ScrollView1.Width,PanelHeight) ... you can do this within a for loop and add the panel1 several times in different PanelTop Positions...
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2016 #3 I recommend you to use CustomListView. You can create the items programmatically or with the designer. Upvote 0
I recommend you to use CustomListView. You can create the items programmatically or with the designer.
Alexander Stolte Expert Licensed User Longtime User Dec 28, 2016 #4 Erel is the CustomListView with a Scrollbar? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2016 #5 See the tutorial: https://www.b4x.com/android/forum/threads/customlistview-a-flexible-list-based-on-scrollview.19567/ It is based on a regular ScrollView. Upvote 0
See the tutorial: https://www.b4x.com/android/forum/threads/customlistview-a-flexible-list-based-on-scrollview.19567/ It is based on a regular ScrollView.