ActionBar setIcon with Font-Awesome
android, android-actionbar, android-icons, font-awesome
Solution
Yes, you need to create a `Drawable` and draw the icon. You could take a look at the TextDrawable project on github. You can modify it such that Font-Awesome is used as the typeface.
Make sure that you bundle the font along with the project.
Problem
Is it possible to set an Icon in ActionBar through setIcon method (that accept drawable or Resource id) with a `"Text"` using AwesomeFont? Should I create a Drawable or something like that? In Drawable what should I Create? EDIT ``` public class AwesomeTextView extends TextView { private static Typeface fontAwesome; public AwesomeTextView(Context context, AttributeSet attrs) { super(context, attrs); if (fontAwesome == null) { fontAwesome = Typeface.createFromAsset(context.getAssets(), "fonts/fontawesome-webfont.ttf"); } setTypeface(fontAwesome); } } ``` So I had created an AwesomeTextView that uses font-awesome, Is there a way to make an AwesomeTextView as drawable?