B4J Question Listview Center text

Arturs

Member
Licensed User
Longtime User
Hi

It seems that it should be very easy but I cannot find solution How to center text in ListView Object.


Regards
Artur
 

Daestrum

Expert
Licensed User
Longtime User
Or you can set with external css file
B4X:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "licss.css"))
css file
B4X:
#lv .list-cell {
   -fx-alignment: center;
}
where 'lv' is the id of the listview so it only applies to that not all listviews.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…