{"id":16673721,"url":"https://github.com/nathan-fiscaletti/fa-android","last_synced_at":"2026-05-16T18:08:08.967Z","repository":{"id":68305839,"uuid":"231428175","full_name":"nathan-fiscaletti/fa-android","owner":"nathan-fiscaletti","description":"✅ An implementation of Font Awesome in Android","archived":false,"fork":false,"pushed_at":"2020-04-06T22:49:44.000Z","size":931,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T23:27:35.143Z","etag":null,"topics":["android","android-library","android-studio","android-ui","font-awsome"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathan-fiscaletti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-02T17:24:57.000Z","updated_at":"2020-04-06T22:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"96686f02-e8fc-4272-8ee1-2704e81533f9","html_url":"https://github.com/nathan-fiscaletti/fa-android","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nathan-fiscaletti/fa-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-fiscaletti%2Ffa-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-fiscaletti%2Ffa-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-fiscaletti%2Ffa-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-fiscaletti%2Ffa-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathan-fiscaletti","download_url":"https://codeload.github.com/nathan-fiscaletti/fa-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-fiscaletti%2Ffa-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33113509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","android-studio","android-ui","font-awsome"],"created_at":"2024-10-12T12:27:54.219Z","updated_at":"2026-05-16T18:08:08.950Z","avatar_url":"https://github.com/nathan-fiscaletti.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Font Awesome for Android\n\nAn implementation of Font Awesome for Android Projects.\n\nLearn more about Font Awesome [here](https://fontawsome.com)\n\n[![](https://jitpack.io/v/nathan-fiscaletti/fa-android.svg)](https://jitpack.io/#nathan-fiscaletti/fa-android)\n[![](https://jitpack.io/v/nathan-fiscaletti/fa-android/month.svg)](https://jitpack.io/#nathan-fiscaletti/fa-android)\n[![GitHub license](https://img.shields.io/github/license/nathan-fiscaletti/fa-android.svg?color=blue)](https://github.com/nathan-fiscaletti/fa-android/blob/master/LICENSE)\n![FA Version](https://img.shields.io/badge/FA-5.13-blue)\n\n![Logo](./images/logo.png)\n\n## Install Font Awesome for Android into your Android application\n\n1. In your **project level** `build.gradle` add the repository\n\n    ```gradle\n    allprojects {\n        repositories {\n            ...\n            maven { url 'https://jitpack.io' }\n        }\n    }\n    ```\n    \n2. In your **module level** `build.gradle` add the library (find the version numbers [here](https://github.com/nathan-fiscaletti/fa-android/releases))\n\n    ```gradle\n    dependencies {\n        ...\n        implementation 'com.github.nathan-fiscaletti:fa-android:LATEST_VERSION'\n    }\n    ```\n    \nAfter installing the library, in your target (not in the fontawesome target), you will need to create a directory for the font assets.\n\n1. Create a directory in `your_app/src/main` called `assets`.\n2. Within the `assets` directory create a directory called `fonts`.\n3. Download your web fonts from font awesome and move either your free or pro font awesome font files into the assets directory, this project supports both. You should specifically move the `.ttf` font files. For Font Awesome 5.12.0 they are stored within the `webfonts` directory of the zip file you download.\n\nThe final directory structure should look like this:\n\n![File Structure Preview](./images/preview.png)\n\n## General Usage\n\n### Adding a FATextView in your XML Layout\n\n```xml\n    \u003ctk.nathanf.fontawesome.FATextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n\n        app:fa_type=\"solid\"\n        app:fa_icon=\"@string/fa_cloud_drizzle\"\n\n        android:textColor=\"@android:color/black\"\n        android:textSize=\"150sp\"\n\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" /\u003e\n```\n\n### Create an FATextView in Java\n\n```java\nFATextView faTextView = new FATextView(context);\n```\n\n**OR**\n\n```java\nFATextView faTextView = new FATextView(context, R.string.fa_check_circle, FATypeface.FAType.Solid, true);\n```\n\n\u003e The parameters are in the following order: The Context, the Icon, The Icon Type, true for autosize. If you set autosize to false when initializing it, you can later opt to autosize it using `faTextView.autoSizeIcon();`.\n\n### Controlling the Icon\n\nTo change the icon set `fa_icon` to `@string/fa_...` where `...` is the name of the icon you would like to use. You can also control the type of icon used using the `fa_type` property with one of the following: `solid`, `light`, `regular`, or `brands`.\n\nAlternately, if you are working in code, you can use the following functions:\n\n```java\nfaTextView.setIcon(R.string.fa_check_circle);\nfaTextView.setTypeface(FATypeface.FAType.Solid);\n```\n\n\u003e You can control the icon color using `android:textColor`.\n\n### Controlling the Icon Size\n\n![SizePreview](./images/size_demo.gif)\n\nThere are two ways to control the size of the icon. \n\n* Use `wrap_content` for both the **width** and **height** of your view, and control the icon size using `android:textSize=\"XXsp\".\n* Do not use `android:textSize` at all, and instead explicitly set **width** and **height**.\n\nWhen using `wrap_content`, the icon will follow the `android:textSize` property for sizing.\nWhen using explicate sizes, the icon will automatically scale to the size of the view. \n\n\u003e You can opt to turn off auto-sizing using `app:fa_autosize=\"false\"`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan-fiscaletti%2Ffa-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathan-fiscaletti%2Ffa-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan-fiscaletti%2Ffa-android/lists"}