Feather iconfont wrapped in a library for convenience.
Font sourced from https://github.com/AT-UI/feather-font
List of icons and their names can be found here: https://at-ui.github.io/feather-font/
Add this in your project level build.gradle file (not your module build.gradle file):
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}Add library dependency to your module (usually app) build.gradle
dependencies {
implementation 'com.github.blastercoil:FeatherIcons-iconfont-lib:<current version, e.g. 1.0.0>'
}In XML:
<TextView
style="@style/feather_font"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/feather_help_circle"
/>In code:
text_view?.text = FeatherIcons.feather_shopping_cart.glyph