Hello,
1. I would like to know how from the code we can vertically center the text in a button independently of the image.
2. How to put a specific color like: (#FF6AA84F) that fills the button.
Thank you in advance
My Code:
cs.Initialize
cs.Size(25)
cs.Alignment("ALIGN_LEFT")
cs.Color(Colors.Black)
cs.TypeFace(Typeface.FONTAWESOME)
cs.Image(LoadBitmap(File.DirAssets, "office.png"), 90dip, 90dip, False).VerticalAlign(15dip).Append(" Office")
cs.Append(CRLF)
cs.PopAll
bt1.As(B4XView).SetColorAndBorder(xui.Color_LightGray, 1dip, xui.Color_DarkGray, 9dip)
SetShadow(bt2.As(B4XView), 4, xui.Color_Green)
bt1.Text = cs
2. How to put a specific color like: (#FF6AA84F) that fills the button.
Thank you in advance