Helly everyone,
In examples and tutorials, I've seen for xCustomListView, I see people just put in x dip as a value.
For example:
My "ListViewItems" layout has a panel that contains all the items, for example maybe a EditText, Label, ImageView, and Button.
Something like this:
How do I determine that 200dip is correct? Do I add up all the heights of my items or something? Do I debug 10x and test different heights until I find something that fits?
Another thing is that after adding my item, there is a huge gap between items in my list. In the examples and tutorials I've seen, the items has a nice even gap between them
In examples and tutorials, I've seen for xCustomListView, I see people just put in x dip as a value.
For example:
B4X:
Dim p As B4XView = xui.CreatePanel("")
p.Color = xui.Color_Black
p.SetLayoutAnimated(0, 0, 0, 100%x, 200dip) '<----- how do I determine what 200dip is supposed to be?
p.LoadLayout("ListViewItems")
My "ListViewItems" layout has a panel that contains all the items, for example maybe a EditText, Label, ImageView, and Button.
Something like this:
How do I determine that 200dip is correct? Do I add up all the heights of my items or something? Do I debug 10x and test different heights until I find something that fits?
Another thing is that after adding my item, there is a huge gap between items in my list. In the examples and tutorials I've seen, the items has a nice even gap between them