Alberto Michelis Well-Known Member Licensed User Longtime User Jan 7, 2019 #1 Hi, Im using a listview as a menu, in the line items Im using fontawsome to add an icon. How can I align the line description? see image thanks Attachments WhatsApp Image 2019-01-07 at 14.10.24.jpeg 34.5 KB · Views: 231
Hi, Im using a listview as a menu, in the line items Im using fontawsome to add an icon. How can I align the line description? see image thanks
DonManfred Expert Licensed User Longtime User Jan 7, 2019 #2 Using CSBuilder correctly and it will work. Note that there is an Example in the CS-Tutorial! B4X: ListView1.AddSingleLine(cs.Initialize.Color(Rnd(0xFF000000, -1)).Alignment("ALIGN_CENTER").Append($"Item #${i}"$).PopAll) Upvote 0
Using CSBuilder correctly and it will work. Note that there is an Example in the CS-Tutorial! B4X: ListView1.AddSingleLine(cs.Initialize.Color(Rnd(0xFF000000, -1)).Alignment("ALIGN_CENTER").Append($"Item #${i}"$).PopAll)
Alberto Michelis Well-Known Member Licensed User Longtime User Jan 7, 2019 #3 Im not using CSBuilder, just filling a listview. Upvote 0
Alberto Michelis Well-Known Member Licensed User Longtime User Jan 7, 2019 #4 B4X: ListView1.AddSingleLine(Chr(0xF2B9) & " Item 1" ) ListView1.AddSingleLine(Chr(0xF187) & " Item 2" ) ListView1.AddSingleLine(Chr(0xF1FE) & " Item 3" ) ListView1.AddSingleLine(Chr(0xF0B2) & " Item 4" ) Upvote 0
B4X: ListView1.AddSingleLine(Chr(0xF2B9) & " Item 1" ) ListView1.AddSingleLine(Chr(0xF187) & " Item 2" ) ListView1.AddSingleLine(Chr(0xF1FE) & " Item 3" ) ListView1.AddSingleLine(Chr(0xF0B2) & " Item 4" )
Alberto Michelis Well-Known Member Licensed User Longtime User Jan 7, 2019 #5 I am on B4A 7.01, may be CS is not included... Upvote 0
DonManfred Expert Licensed User Longtime User Jan 7, 2019 #6 Ok, does not work with CS Builder to use two Alignments in ONE CS-String. Sounds like is would be easier to use a xCustomListview instead for such a Layout Upvote 0
Ok, does not work with CS Builder to use two Alignments in ONE CS-String. Sounds like is would be easier to use a xCustomListview instead for such a Layout