A Simple, Light Weight Text Icon Widget for Android ..
Tired of downloading every Material Icon images into every drawable folder ..?
It's now made simple as a Text widget with a single font. Now you can display 891 Material Icons with any size with any color in pretty simple lines as below ..
<com.rambabusaravanan.TextIcon
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ic_cloud_download" />
and use color and size of the text icon as usual
android:textColor="@color/button_material_dark"
android:textSize="@dimen/icon_size"
Download the latest AAR into app/libs folder and add the gradle scripts in project's build.gradle ..
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
// other dependencies you need ..
compile(name:'texticon-v1', ext:'aar')
}
Sometimes, Android Studio may face difficulty in generting sample preview in preview pane. In such cases, download the font MaterialIcons-Regular.ttf into app/src/main/assets/font folder and try again ..
Download the latest APK, a handbook for all 891 Material Icons and give it a try ..