Skip to content
Droid Tools
Latest
/
NewsPhonesReviewsGuides

Devices

  • PhonesLaunches, specs & what comes next
  • WearablesWatches, trackers & everyday tech

Software

  • AppsNew features & useful discoveries
  • Android OSUpdates, rollouts & security patches

Read & learn

  • NewsThe latest across mobile technology
  • ReviewsA closer look at devices & accessories
  • GuidesPractical tips & troubleshooting

In the spotlight

WearablesXiaomi Watch S5 41mm launches globally with two-week battery lifeRead the story
All news
About Droid ToolsContact

Browse by brand

  • AppleiPhone, iPad & Apple Watch
  • SamsungGalaxy, One UI & more
  • GooglePixel, Android & Google apps
  • XiaomiXiaomi, Redmi & HyperOS
  • OnePlusPhones, watches & OxygenOS
  • HuaweiPhones, wearables & HarmonyOS
  • OppoFind, Reno & ColorOS
  • HonorMagic, wearables & MagicOS
  • MotorolaRazr, Edge & Moto

Latest from the brands

WearablesXiaomi Watch S5 41mm launches globally with two-week battery lifeRead the story
Follow the brands behind your everyday tech.All phones

Deals & buying advice

Find your next upgrade.

Reported discounts on phones, wearables and accessories. Check each retailer for current pricing and availability.

Browse all deals

Recent deal coverage

  • PhonesAmazon cuts Samsung Galaxy S26 Ultra price by over $260Read the story
  • WearablesSony WF-1000XM6 earbuds drop to $238 in limited B&H Photo Video discountRead the story
  • NewsWalmart cuts iVANKY ultra-slim magnetic power bank to $15 in 50% discountRead the story
All deals Explore our guides
  • About Us
  • Contact
  • Editorial Policy
  • Review Policy
  • Privacy Policy
  • Terms & Conditions
  • Cookie Policy
  • Affiliate Disclosure
  • Disclaimer
  • HTML Sitemap

Follow Droid Tools

FacebookXInstagramThreadsLinkedInBlueskyTikTokTelegramMastodonRSS Feed
Droid Tools

Droid Tools covers the latest Android news, device reviews, app updates, and OS guides. Independent mobile tech reporting and practical advice.

Explore

  • News
  • Phones
  • Apps
  • Android OS
  • Wearables
  • Guides
  • Reviews
  • Deals

Legal & Info

  • About Us
  • Contact
  • Editorial Policy
  • Review Policy
  • Privacy Policy
  • Terms & Conditions
  • Cookie Policy
  • Affiliate Disclosure
  • Disclaimer
  • HTML Sitemap
© 2026 Droid Tools. All rights reserved.
Home/News/Use Font Awesome icons in android apps

Use Font Awesome icons in android apps

Font Awesome is a widely used icon toolkit that may be found on a variety of websites. It features both a free and a paid icon collection, but the free collection has the majority of the icons. Unicode () will be used to represent each icon. In TextView, we utilize this unicode to display the ...

Robert Haba• Founder · Editor-in-Chief
Nov 4, 2021•Updated•News•3 min read
Use Font Awesome icons in android apps
0%
Share on XFacebookBluesky
Follow on Google
Trust this source on GoogleAlways see our reviews and tech guides first in search results
Add trusted source

Font Awesome is a widely used icon toolkit that may be found on a variety of websites. It features both a free and a paid icon collection, but the free collection has the majority of the icons. Unicode () will be used to represent each icon. In TextView, we utilize this unicode to display the icon. All text styling elements (color, size, paddings, etc.) can be added because it’s a regular TextView.

If you wish to display the android Robot logo, for example, you can use  unicode as the TextView value.

GITHUB

1. Font Awesome Android Library

To use the Font Awesome icon collection, simply add the font awesome font files to your assets and apply the relevant fontFace to the TextView, which is a much easier operation. However, we’d like the icons to appear in other widgets as well, such as Buttons, Menus, Bottom Navigation, and Navigation Drawer. It requires some effort to display an icon in a non-textual view. As a result, I created a library that has all of the essential methods for rendering icons in numerous widgets.

To get started, include the fontawesome in your build.gradle and sync your project.

dependencies {
    // font awesome
    implementation 'info.androidhive:fontawesome:0.0.5'
}

2. How to use it?

(adsbygoogle = window.adsbygoogle || []).push({});

Displaying Icon in TextView

Using the FontTextView text and specifying the proper icon name as text value is the simplest way to display the font icon. Because this widget is derived from AppCompatTextView, it inherits all of the text view properties.

<info.androidhive.fontawesome.FontTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/fa_calendar_check_solid"
            android:textColor="@color/icon_color"
            android:textSize="@dimen/icon_size"
            app:solid_icon="true" />
  • solid_icon: To display solid icon, set this value as true.
  • brand_icon: To display brand icon, set this value as true.

Using FontDrawable

Using the icon in xml layout is easy, but if you want to use the icon for other widget like button or menu, you can use the FontDrawable element to apply the icon.

You may also likeRelated
NewsSoutheast Asia smartphone shipments dropped 36% in Q3 2026 amid memory shortagesNov 18, 2026→NewsArcticRAT Malware Uses AI to Identify Android Targets for Financial GainNov 18, 2026→NewsHuawei MateBook Fold S leak shows folding keyboard and dual-screen designNov 17, 2026→

For an example, if you want to use the font awesome icon to Floating Action Button, you can use the FontDrawable as shown below.

FloatingActionButton fab = findViewById(R.id.fab);
 
// using paper plane icon for FAB
FontDrawable drawable = new FontDrawable(this, R.string.fa_paper_plane_solid, true, false);
 
// white color to icon
drawable.setTextColor(ContextCompat.getColor(this, android.R.color.white));
fab.setImageDrawable(drawable);

Using in Menus (Bottom Navigation, Navigation Drawer etc.,)

You can also use font icons in widgets that use the menu file to generate elements like Toolbar icons, Bottom Navigation, and Navigation Drawer, among others. You can use the FontDrawable to configure the icons in menus, however it requires a few hacks using java code.

The below example shows rending the font awesome icons in Navigation Drawer menu. Full example can be found here.

public class MainActivity extends AppCompatActivity
        implements NavigationView.OnNavigationItemSelectedListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
 
        intDrawerLayout();
    }
 
    /**
     * Changing navigation drawer icons
     * This involves looping through menu items and applying icons
     */
    private void intDrawerLayout() {
        NavigationView navigationView = findViewById(R.id.nav_view);
        navigationView.setNavigationItemSelectedListener(this);
 
        ImageView iconHeader = navigationView.getHeaderView(0).findViewById(R.id.nav_header_icon);
        FontDrawable drawable = new FontDrawable(this, R.string.fa_font_awesome, false, true);
        drawable.setTextColor(ContextCompat.getColor(this, android.R.color.white));
        drawable.setTextSize(50);
        iconHeader.setImageDrawable(drawable);
 
        int[] icons = {
                R.string.fa_home_solid, R.string.fa_calendar_alt_solid, R.string.fa_user_solid,
                R.string.fa_heart_solid, R.string.fa_comment_solid, R.string.fa_dollar_sign_solid, R.string.fa_gift_solid
        };
        renderMenuIcons(navigationView.getMenu(), icons, true, false);
 
        int[] iconsSubmenu = {R.string.fa_cog_solid, R.string.fa_sign_out_alt_solid};
 
        renderMenuIcons(navigationView.getMenu().getItem(7).getSubMenu(), iconsSubmenu, true, false);
    }
 
    /**
     * Looping through menu icons are applying font drawable
     */
    private void renderMenuIcons(Menu menu, int[] icons, boolean isSolid, boolean isBrand) {
        for (int i = 0; i < menu.size(); i++) {
            MenuItem menuItem = menu.getItem(i);
            if (!menuItem.hasSubMenu()) {
                FontDrawable drawable = new FontDrawable(this, icons[i], isSolid, isBrand);
                drawable.setTextColor(ContextCompat.getColor(this, R.color.icon_nav_drawer));
                drawable.setTextSize(22);
                menu.getItem(i).setIcon(drawable);
            }
        }
    }
}
Recommended Deals
1 / 9
Google Pixel 11 Pro

Google Pixel 11 Pro

4.9
$849.00$1,099.00-23%
Buy on Amazon
* As an Amazon Associate, Droid Tools earns from qualifying purchases. Read our editorial policy
Tags:#android•#apps•#awesome•#code•#drawable•#font
Robert Haba
Robert HabaFounder · Editor-in-Chief
X

Robert Haba is the founder and editor-in-chief of Droid Tools. A lifelong gadget enthusiast with over a decade following the Android ecosystem, he built this publication to cut through the noise and give readers honest, real-world coverage of the tech they actually use.

Next Story in News

Southeast Asia smartphone shipments dropped 36% in Q3 2026 amid memory shortages

Southeast Asia smartphone shipments fell 36% in Q3 2026 to 16.5 million units as memory costs climbed, while average selling prices jumped 53%.

→

Latest Stories

Xiaomi Watch S5 41mm launches globally with two-week battery life01

Xiaomi Watch S5 41mm launches globally with two-week battery life

02

Samsung rolls out November 2026 security patch to Galaxy S26, S26+, and Z Flip 8

03

WhatsApp beta for Android tests shrinking navigation bar and personal cover photos

04

Google to bring proactive Gemini suggestions to Android Auto exclusively on Pixel phones

Recommended Deal
-13% OFF
Google Pixel Watch 5 (45mm)

Google Pixel Watch 5 (45mm)

5.0(1,771 reviews)
$459.99$529.99
Buy on Amazon

* As an Amazon Associate, Droid Tools earns from qualifying purchases.

Top Deals

Amazon cuts Samsung Galaxy S26 Ultra price by over $260

Deal
Amazon cuts Samsung Galaxy S26 Ultra price by over $260

Sony WF-1000XM6 earbuds drop to $238 in limited B&H Photo Video discount

Deal
Sony WF-1000XM6 earbuds drop to $238 in limited B&H Photo Video discount

Walmart cuts iVANKY ultra-slim magnetic power bank to $15 in 50% discount

Deal
Walmart cuts iVANKY ultra-slim magnetic power bank to $15 in 50% discount

Continue reading

More from this category →
Southeast Asia smartphone shipments dropped 36% in Q3 2026 amid memory shortages
NewsNov 18, 2026

Southeast Asia smartphone shipments dropped 36% in Q3 2026 amid memory shortages

Southeast Asia smartphone shipments fell 36% in Q3 2026 to 16.5 million units as memory costs climbed, while average selling prices jumped 53%.

By Luiza Mosneagu
ArcticRAT Malware Uses AI to Identify Android Targets for Financial Gain
NewsNov 18, 2026

ArcticRAT Malware Uses AI to Identify Android Targets for Financial Gain

ArcticRAT malware uses a commercial LLM to analyze stolen SMS messages, estimate victim finances, and enable full takeover of infected Android phones.

By Luiza Mosneagu
Huawei MateBook Fold S leak shows folding keyboard and dual-screen design
NewsNov 17, 2026

Huawei MateBook Fold S leak shows folding keyboard and dual-screen design

Leaked photos of the Huawei MateBook Fold S show its folding keyboard, virtual layout, possible dual-layer OLED, and November 14 pre-order date.

By Luiza Mosneagu
huawei logo
NewsNov 17, 2026

Huawei leads China tablet market in Q3 2026 despite higher prices

Huawei led the China tablet market in Q3 2026 with a 24.1% share despite higher prices and a 22.3% industry contraction, according to IDC.

By Cristian Penisoara
Next in queue

Read the next article

The next story loads as you reach the end. You can also load it using the button.

Comments & Discussions

Join the conversation! We use Disqus to handle comments. Click the button below to load the comment section.