Hi All
A question on setting the item height in a CustomListView.
I have found several references to "Changing the height of an existing item but requires each item to be independently changed.
In ListView I would do this:
and
would build a Lisview where Label and Item are all 40dip.
In CustomListView I have found AllListView.DesignerLabel.Height = 40dip gives a Label height but nothing to preset the ItemHeight.
I am sure it is in there somewhere, but at the moment I get Labels 40dip and Items much bigger.
Thanks in advance
Regards Roger
A question on setting the item height in a CustomListView.
I have found several references to "Changing the height of an existing item but requires each item to be independently changed.
In ListView I would do this:
B4X:
AllListView.SingleLineLayout.Label.Height = 40dip
AllListView.SingleLineLayout.ItemHeight = AllListView.SingleLineLayout.Label.Height
and
B4X:
AllListView.Clear 'Clear Listview before populating or else you get duplicates
AllListView.AddSingleLine2("About",14)
AllListView.AddSingleLine2("Help",14)
AllListView.AddSingleLine2("Settings",14)
AllListView.AddSingleLine2("Export Function",14)
AllListView.AddSingleLine2("Import Function",14)
would build a Lisview where Label and Item are all 40dip.
In CustomListView I have found AllListView.DesignerLabel.Height = 40dip gives a Label height but nothing to preset the ItemHeight.
I am sure it is in there somewhere, but at the moment I get Labels 40dip and Items much bigger.
Thanks in advance
Regards Roger