Android Question B4XFloatTextField Hint - Fontawesome

tsteward

Well-Known Member
Licensed User
Longtime User
Can I use fontawseome icons in the hint of a B4XFloatTextField?
 

asales

Expert
Licensed User
Longtime User
1 - change the typeface of B4XFloatTextField in Visual Designer to FontAwesome

2 - Use CSBuilder:
B4X:
Dim cs As CSBuilder
cs.Initialize.Typeface(Typeface.FONTAWESOME).Append(Chr(0xF1FD)).Pop.Append(" Birthday Date").PopAll
B4XFloatTextField1.HintText = cs
B4XFloatTextField1.Update
1656332853618.png
 
Upvote 2
Top