Android Question DDD.CreateToolbar - add FontAwesome and Text below icon

mfstuart

Active Member
Licensed User
Longtime User
Is it possible when using the DDD.CreateToolbar, to add the text below or above the icon?

Thanx,
Mark Stuart
 

TILogistic

Expert
Licensed User
Longtime User
??
B4X:
DDD.CreateToolbar(Pane1, "BottomToolbar", DDD.ToChr(0xF015), "home", _
    " " & DDD.ToChr(0xF217) & DDD.ToChr(10) & "Cart", "cart", DDD.ToChr(0xF1D9), "send")
DDD.SpreadControlsHorizontally(Pane1, 120dip, 10dip)

1657585059209.png
 
Upvote 0

mfstuart

Active Member
Licensed User
Longtime User
Thanx Omar, Nice work. I tried CRLF, but obviously that doesn't work in the script area.

My observations with this solution...
With the default Label on the Layout, the Text Size is set to 26, which makes the text way too big. But that's good for the icon, so you can see it.
It would be great if the icon Text Size and the text Text Size could be set independently, to balance the UI.

Not sure if there's a good solution for this.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top