A Arturs Member Licensed User Longtime User Nov 15, 2015 #1 Hi It seems that it should be very easy but I cannot find solution How to center text in ListView Object. Regards Artur
Hi It seems that it should be very easy but I cannot find solution How to center text in ListView Object. Regards Artur
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2015 #2 See this thread: https://www.b4x.com/android/forum/threads/tableview-cell-alignment-and-color.35364 Upvote 0
A Arturs Member Licensed User Longtime User Nov 16, 2015 #3 Thank you for information. Why Can't it set from Designer ? It would be much easier. Upvote 0
Daestrum Expert Licensed User Longtime User Nov 16, 2015 #4 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
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.