D DPH Member Licensed User Longtime User Aug 3, 2013 #1 I have a program which has a variable list of maps that I want to link to from labels. I want to place the labels on a scroll view which is sized to the screen resolution. How can I dynamically add the labels and click events to the scroll view? I want the labels placed in horizontal rows.
I have a program which has a variable list of maps that I want to link to from labels. I want to place the labels on a scroll view which is sized to the screen resolution. How can I dynamically add the labels and click events to the scroll view? I want the labels placed in horizontal rows.
Sirrab Member Licensed User Longtime User Aug 3, 2013 #2 I have done it like this in my app Code: Copy Dim lastpaid(15) As Label scrollline = scrollline + 1 scrolllineypos = 40 lastpaid(scrollline).Initialize("taskdone") scrolllineypos = scrolllineypos + 40 MainScroll.Panel.AddView(lastpaid(scrollline),50%x,scrolllineypos + 40dip,50%x,20dip) Upvote 0
I have done it like this in my app Code: Copy Dim lastpaid(15) As Label scrollline = scrollline + 1 scrolllineypos = 40 lastpaid(scrollline).Initialize("taskdone") scrolllineypos = scrolllineypos + 40 MainScroll.Panel.AddView(lastpaid(scrollline),50%x,scrolllineypos + 40dip,50%x,20dip)
Erel B4X founder Staff member Licensed User Longtime User Aug 3, 2013 #3 Consider using CustomListView class: http://www.b4x.com/android/forum/posts/112810/ Upvote 0