IconicTextView is an extension of Android TextView class which provides support for some iconic fonts.
Try out the sample application.
IconicTextView 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.
Layout:
<com.atermenji.android.iconictextview.IconicTextView
android:id="@+id/iconic_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="100sp" />
Code:
IconicTextView iconicTextView = (IconicTextView) findViewById(R.id.iconic_text_view);
iconicTextView.setIcon(EntypoSocialIcon.GITHUB);
iconicTextView.setTextColor(Color.GREEN);
- 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.