can i use font awesome icons in android studio code example

Example: how to use font awesome icons in android

//  siyanda.zama 15.06.20

in build.gradle file (module)
// add this to your dependencies 
implementation 'info.androidhive:fontawesome:0.0.5'

in main activity or fragment
<info.androidhive.fontawesome.FontTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/fa_calendar_check_solid"
            //this will make the icon black
            android:textColor="#000"
            //depending on your liking 
            android:textSize="30sp"
            app:solid_icon="true" />
            
// where you input the text you can just change it depending on which icon 
your really keen on using
//using font awesome icons is really better than suppose getting your
icons from icons8.com which tend to become a problem over time so i highly
suggest you stick to font awesome icons!
Happy coding

Tags:

Misc Example