This example uses xCustomListView to implement a list of cards. As the items layout is created with the designer, it is simple to implement any layout you like. You can also combine different types of items in the same list. The divider color and pressed color are set to transparent. The items...
Ya he conseguido armar una CustomListView con los resultados de una consulta; pero las Cards me quedan muy separadas. Supongo que es por el área que me queda libre en el layout:
... pero por más que miro, no encuentro la manera de reducirla... ¿me podéis ayudar?
Ola!
You must resize the height when creating the "card"
Sub CreateListItem(mytext As String) As Panel
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0dip, 0dip, CLV.AsView.Width, 235dip) '<---- DIP Height for the panel
p.LoadLayout("card_avarias") '<---- Your card
Return p
End Sub