There is popular web-technique for creating awesome icons - generate font with custom glyphs and use single unicode character with specified typeface.
You can check a lot of online services which provide tools to create such fonts:
- Font Awesome
- Fontastic (used in example app)
- IcoMoon
- Fontello
- We Love Icon Fonts
If you didn't use it - it's time to try this approach now!
Get demo on Google Play
Video
Direct link to this video (some problems with mobile devices).
Gradle dependency
Just add folowing lines in corresponding section of your build.gradle:
repositories { mavenCentral() } dependencies { compile 'com.shamanland:fonticon:0.1.8' }
Example
Clone github repository and check example app yourself.
How it works?
Read following articles:
- How to use icon-fonts in Android
- Font-icon technique in Android. Critical issue!
- FontIcon Library now supports ColorStateList