Skip to content

A Font Awesome is a font that you apply to your TextView and set the specific value to text in order to display the icon instead of text.

Notifications You must be signed in to change notification settings

Ad9an/android-fontawesome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

android-fontawesome

A Font Awesome is a font that you apply to your TextView and set the specific value to text in order to display the icon instead of text.

Basically this Repositry provide you following Data and Usage

  • Icon Data Class
  • Model Class
  • Font file

How to Use in your project

How to apply icon to your TextView

  • First set font to the textview

Typeface fontAwesomeFont = Typeface.createFromAsset(getActivity().getAssets(), "font/fontawesome-webfont.ttf");

textView2.setTypeface(fontAwesomeFont);

Set Icon to the TextView

textView2.setText(Html.fromHtml("&#xf26e")); //add ; at the end of text

About

A Font Awesome is a font that you apply to your TextView and set the specific value to text in order to display the icon instead of text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages