IconicDroid is a custom Android Drawable which allows to draw icons from several iconic fonts.
Try out the sample application.
IconicDroid is presented as an Android library project. It is not a standalone JAR because fonts are stored as a raw resources.
You can include this project by referencing it as a library project in Eclipse or ant.
Code:
IconicFontDrawable iconicFontDrawable = new IconicFontDrawable(getContext());
iconicFontDrawable.setIcon(EntypoSocialIcon.GITHUB);
iconicFontDrawable.setIconColor(Color.GREEN);
findViewById(R.id.some_view).setBackground(iconicFontDrawable);
- Entypo pictograms by Daniel Bruce — www.entypo.com
- FontAwesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome/
- Iconic font by P.J. Onori - http://somerandomdude.com/work/iconic/
Note that all fonts have their own license.