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)
 
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
    5.8 KB · Views: 85
Upvote 0

omarruben

Active Member
Licensed User
Longtime User
thank you !!!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…