Android Question CustomListView -> add Layouts next to each other

TheRealMatze

Active Member
Licensed User
Hi,
i don´t see how to do it... I have one layout with my CustomListView and one layout with a box. I want to add this layout to the CustomListView, but in a row instead of below each other.
So, it should look like
# # # #
instead of
#
#
#
#

I add the layout this way
B4X:
    Dim p As Panel
    p.Initialize("")
    p.SetLayout(0dip,0dip,25%x,25%x*1.5)
    p.LoadLayout("Knopf")
    tlv.Add(p,"")
I have no idea how to...

Regards
Matze
 

TheRealMatze

Active Member
Licensed User
Ok, that´s easy But not 100% what i mean. I have not described it correct... The endresult should be

| # # # # |
| # # # # |
| # # # # |
...
| # # # # |

now it is so
| # # # # | # # # # # # # # #

I hope that´s as easy as the horizontal change
 
Upvote 0

jahswant

Well-Known Member
Licensed User
Longtime User

 
Upvote 0

TheRealMatze

Active Member
Licensed User
There is only text, so i don´t need to load it async. It´s also a limited but not exactly knowing count of elements. But the basic idea you show me is absolute straight forward, and i like that.

To make it easier for the next one searching for it.
The "List Orientation" must be vertical. And than instead of using a layout for each item it´s better to use one layout per row - so for my example i copy my 25%x element 4 times and give it a extra loop while filling.

Thank you @jahswant
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…