Android Question Put a font-awesome icon and text in two lines with Swiftbuton

omarruben

Active Member
Licensed User
Longtime User
Hello , I am using swiftbuton with typeface fontawesome and work excellent, but I would like to put the icon big at the top and the text small under, is this possible on designer? or programmatically?, thank you in advance (this is the way it is right now) Screenshot_20210224-072848 copy.png
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
I would like to put the icon big at the top and the text small under,
OK, Omar, here it is:
Suppose your swit button is called: Swift. You can also change the size of the text below and the icon itself.
B4X:
Dim cs As CSBuilder
cs.Initialize
cs.Initialize.color(Colors.Red).Size(50).Typeface(Typeface.FONTAWESOME).VerticalAlign(10dip).Append(Chr(0xF124)).Pop. _
    Typeface(Typeface.DEFAULT_BOLD).Append(CRLF).Size(24).Append("Send Documents").PopAll
    Swift.xLBL.Text = cs
 

Attachments

  • OmarSwiftButton.png
    OmarSwiftButton.png
    5.8 KB · Views: 108
Upvote 0

omarruben

Active Member
Licensed User
Longtime User
OK, Omar, here it is:
Suppose your swit button is called: Swift. You can also change the size of the text below and the icon itself.
B4X:
Dim cs As CSBuilder
cs.Initialize
cs.Initialize.color(Colors.Red).Size(50).Typeface(Typeface.FONTAWESOME).VerticalAlign(10dip).Append(Chr(0xF124)).Pop. _
    Typeface(Typeface.DEFAULT_BOLD).Append(CRLF).Size(24).Append("Send Documents").PopAll
    Swift.xLBL.Text = cs
thank you !!!!
 
Upvote 0
Top