I am trying to load font icon using fontawesome.ttf in a textView.
If i set the string value like  through string.xml then it works file and Icon is shown. But if the same text "" is set programatically as
textView.setText("")
then it doesn't show the icon , rather the same text is shown on textview.
Any alternative approach to show icons programatically without referring string.xml file ?
Now with the magic of Kits, you can upload your own icons and use them right alongside official Font Awesome ones!
Try using the Unicode code... \uf007.
This should work just fine:
textView.setText("\uf007");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With