Android Question Button with Icon at top and text on the bottom

RogerGCollin

Member
Licensed User
I am completely new to B4A and just starting out making an app for fun! My only experience with coding has been some VBA with Excel. I am looking to set up a menu bar for my app something like the picture below. This has a big icon on the top and small text underneath for each button. I tried using FontAwesome for the icon and that looked great but could not figure out a way to put small text underneath it. Does this need to be done by coding or can it be done in the designer?

Thanks!
 

Attachments

  • menu.png
    menu.png
    26.2 KB · Views: 209

angel_

Well-Known Member
Licensed User
Longtime User
Try this:

 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
This has a big icon on the top and small text underneath for each button.
Another option is to use CSBuilder. Lots of threads about it. Here is an example code with the matching screenshot:
B4X:
Dim cs As CSBuilder
    cs.Initialize.color(Colors.Red).Size(50).Typeface(Typeface.MATERIALICONS).VerticalAlign(10dip).Append(Chr(0xE52F)).Pop. _
    Typeface(Typeface.DEFAULT_BOLD).Append(CRLF).Size(24).Append("Tracker").PopAll
    Button1.Text = cs
 

Attachments

  • Tracker.png
    Tracker.png
    10.7 KB · Views: 222
Upvote 0
Top