{"id":22266644,"url":"https://github.com/fly-studio/android-iconify","last_synced_at":"2025-10-05T14:58:46.134Z","repository":{"id":165509833,"uuid":"134389768","full_name":"fly-studio/android-iconify","owner":"fly-studio","description":"Android integration of multiple icon providers such as FontAwesome 在Android中使用Font Awesome图标","archived":false,"fork":false,"pushed_at":"2018-05-22T10:23:17.000Z","size":935,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T14:24:34.635Z","etag":null,"topics":["andorid","font-awesome","icon","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fly-studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-22T09:11:03.000Z","updated_at":"2018-05-24T06:05:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe8ee3b7-c840-40c8-8562-9f6c9d0c62cc","html_url":"https://github.com/fly-studio/android-iconify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fly-studio/android-iconify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-studio%2Fandroid-iconify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-studio%2Fandroid-iconify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-studio%2Fandroid-iconify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-studio%2Fandroid-iconify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-studio","download_url":"https://codeload.github.com/fly-studio/android-iconify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-studio%2Fandroid-iconify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278470181,"owners_count":25992203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["andorid","font-awesome","icon","java"],"created_at":"2024-12-03T10:19:31.176Z","updated_at":"2025-10-05T14:58:46.127Z","avatar_url":"https://github.com/fly-studio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Iconify** offers you a **huge collection of vector icons** to choose from, and an intuitive way to **add and customize them in your Android app**.\n\nThis project is base on [JoanZapata/android-iconify](https://github.com/JoanZapata/android-iconify). Because of the owner gived up to update that project,\n\n-----\n\n### Install\n\nPick any number of modules and declare them in your `Application`.\n\n```gradle\nrepositories {\n\t...\n\tjcenter()\n\t...\n}\ndependencies {\n    implementation 'com.fly.iconify:iconify-fontawesome:1.0.0' // Font Awesome\n}\n```\n\n```java\n// You may inherit a Application\npublic class App extends Application {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        // add this code to onCreate in Application or Activity\n        Iconify\n            .with(new FontAwesomeModule()) // default FontAwesome\n            .with(new FontAwesomeLightModule()) // if you need light FontAwesome\n            .with(new FontAwesomeBrandsModule()) // if you need brands FontAwesome\n            .with(new FontAwesomeRegularIcons()); // if you need regular FontAwesome\n    }\n}\n```\n\n### Show icons in text widgets\n\nIf you need to put an icon on a ```TextView``` or a ```Button```, use the ```{ }``` syntax. The icons act exactly like the text, so you can apply shadow, size and color on them!\n\n- {fa-*}\n\n\t`FontAwesomeModule`\n- {fab-*}\n\n\t`FontAwesomeBrandsModule`\n- {fal-*}\n\n\t`FontAwesomeLightModule`\n- {far-*}\n\n\n\t`FontAwesomeRegularIcons`\n\n```xml\n\u003ccom.fly.iconify.widget.IconTextView\n    android:text=\"I {fa-heart-o} to {fal-code} on {far-android}\"\n    android:shadowColor=\"#22000000\"\n    android:shadowDx=\"3\"\n    android:shadowDy=\"3\"\n    android:shadowRadius=\"1\"\n    android:textSize=\"40sp\"\n    android:textColor=\"#FF...\"\n    ... /\u003e\n\n\u003ccom.fly.iconify.widget.IconButton\n    .../\u003e\n\n\u003ccom.fly.iconify.widget.IconToggleButton\n    .../\u003e\n```\n\n\n\n\u003cimg src=\"graphics/androids.png\" height=\"347\"\u003e\n\n### Icon options\n\n* Shall you need to override the text size of a particular icon, the following syntax is supported `{fa-code 12px}`, `{fa-code 12dp}`, `{fa-code 12sp}`, `{fa-code @dimen/my_text_size}`, and also `{fa-code 120%}`.\n* In the same way you can override the icon color using `{fa-code #RRGGBB}`, `{fa-code #AARRGGBB}`, or `{fa-code @color/my_color}`.\n* You can even easily spin an icon like so `{fa-cog spin}`.\n\n\u003cimg src=\"graphics/spinning.gif\" height=\"37\"\u003e\n\n### Show an icon where you need a `Drawable`\n\nIf you need an icon in an ```ImageView``` or in your ```ActionBar``` menu item, then you should use ```IconDrawable```. Again, icons are infinitely scalable and will never get fuzzy!\n\n```java\n// Set an icon in the ActionBar\nmenu.findItem(R.id.share).setIcon(\n   new IconDrawable(this, FontAwesomeIcons.fa_share)\n   .colorRes(R.color.ab_icon)\n   .actionBarSize());\n```\n\n## Extensibility\n\nIn case you can't find the icon you want, you can extend the available icon directly from your app. All you need to do is to implement `IconFontDescriptor` with a `.ttf` file in your assets and provide the mapping between keys and special characters, then give it to `Iconify.with()`. You can use the  [FontAwesomeModule](https://github.com/fly-studio/android-iconify/blob/master/iconify-fontawesome/src/main/java/com/fly/iconify/fontawesome/module/FontAwesomeModule.java) as an example.\n\nThere are no constraints on the icon keys, but I strongly suggest you use a unique prefix like `my-` or anything, to avoid conflicts with other modules. FYI, if there **is** a conflict, the first module declared with `Iconify.with()` has priority.\n\nThe only dependency you need if you want to use a custom icon is Iconify core.\n\n```gradle\nimplementation 'com.fly.iconify:iconify:1.0.0'\n```\n\n-----\n\n## Contributions\n\n\n\n## License\n\nThe android-iconify is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-studio%2Fandroid-iconify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-studio%2Fandroid-iconify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-studio%2Fandroid-iconify/lists"}