Hi there
I am interested in theXgridView XgridListView layout however to use own defined layouts. For example, I need a layout with two images to indicate some KPI and some text, around 4 items actually?
Thanks
Edit: These are some variants of the "item". I guess this is due to a "pre-defined" layout per item. Is it possible for one to create and use their own layout variant so that each item meets their own specific design?
These are created by calling .Add / .AddWithImage etc. As an example, with the customlistview, one can create their own layout per item, using this kind of approach.
And add items like...
How can one achieve the same, using their own layouts per item to meet their own specific design per item? I hope its clear.
I am interested in the
Thanks
Edit: These are some variants of the "item". I guess this is due to a "pre-defined" layout per item. Is it possible for one to create and use their own layout variant so that each item meets their own specific design?
These are created by calling .Add / .AddWithImage etc. As an example, with the customlistview, one can create their own layout per item, using this kind of approach.
B4X:
Sub CreateItem(?, ?)
Dim p As B4XView = xui.CreatePanel("")
p.Height = height
p.Width = width
p.Top = 0
p.Left = 0
p.LoadLayout("eachdevice")
blah blah blah
End Sub
And add items like...
B4X:
For Each entry As Map In dbUser.result
lstDevices.Add(CreateItem(lstDevices.AsView.Width, 100dip, entry), sdeviceid)
Next
How can one achieve the same, using their own layouts per item to meet their own specific design per item? I hope its clear.
Last edited: