B4J Question How to set item height in listview?

welu1805

Active Member
Licensed User
Longtime User
Hi all,

does anyone know how to set the item height in a listView?

Thanks
Lutz
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

pls find attached example by using an external stylesheet in the files folder. Add this stylesheet to the form.

B4X:
'File: main.css
.list-cell {
  -fx-cell-size: 50px ;
}

B4X:
'Ensure to add the file main.css, which is stored in files folder to the B4J IDE files tab
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "main.css"))
 

Attachments

  • ListViewSetItemHeight.zip
    1.3 KB · Views: 221
Last edited:
Upvote 0
Top