Android Question Cannot centralise char sequence for button text!

vfafou

Active Member
Licensed User
Hello!
Somewhere in my app, I'm constructing dynamically a customlistview with 2, 3, 4 or 5 buttons depending on some push messages received. The label text of them is not every time the same. I'm using CSBuilder to place text and icon. My problem is that some devices, mainly tablets and not phones, do not show the center alignment, as you see in attached image!

The code used is the following:
B4X:
btn.Text = cs.Initialize.Alignment("ALIGN_CENTER").Typeface(Typeface.FONTAWESOME).VerticalAlign(2dip).Color(Colors.White).Size(24).Append(Chr(0xF017)).Alignment("ALIGN_CENTER").Color(Colors.White).Typeface(Typeface.LoadFromAssets("Ubuntu-R.ttf")).Bold.Size(22).VerticalAlign(-4dip).Append("10 MINUTES").PopAll
Thank you in advance!
 

Attachments

Top