ArmedEmperor977
Member
I'm trying to do a dynamic list with buttons, and put icons on the buttons, but when I put the icon on the button programmatically it gives me an square error
I have tried to use a bigger font size, and a smaller too, but it didn't change anything. I also tried to use MaterialIcons, but it doesn't change anything either.
B4X:
Dim label As Button
label.Initialize("ListBtn")
CSSUtils.SetBackgroundColor(label,fx.Colors.White)
CSSUtils.SetBorder(label,1,fx.Colors.ARGB(255,196,196,196),4)
Dim b4x As B4XView = label
b4x.SetTextAlignment("CENTER","CENTER")
label.Enabled = True
label.Font = Main.xui.CreateFontAwesome(10)
label.Text = Chr(0xF1F8)
label.TextColor = fx.Colors.Red
I have tried to use a bigger font size, and a smaller too, but it didn't change anything. I also tried to use MaterialIcons, but it doesn't change anything either.