{"id":13492651,"url":"https://github.com/JoanZapata/android-iconify","last_synced_at":"2025-03-28T10:32:43.710Z","repository":{"id":8915389,"uuid":"10641697","full_name":"JoanZapata/android-iconify","owner":"JoanZapata","description":"Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,...","archived":false,"fork":false,"pushed_at":"2022-11-17T00:11:55.000Z","size":3689,"stargazers_count":3931,"open_issues_count":68,"forks_count":525,"subscribers_count":125,"default_branch":"master","last_synced_at":"2024-10-15T12:54:54.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://joanzapata.com/android-iconify","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoanZapata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-12T11:42:01.000Z","updated_at":"2024-10-08T06:48:21.000Z","dependencies_parsed_at":"2022-09-15T21:42:31.194Z","dependency_job_id":null,"html_url":"https://github.com/JoanZapata/android-iconify","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-iconify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-iconify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-iconify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanZapata%2Fandroid-iconify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoanZapata","download_url":"https://codeload.github.com/JoanZapata/android-iconify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222369834,"owners_count":16973287,"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","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":[],"created_at":"2024-07-31T19:01:07.916Z","updated_at":"2024-10-31T06:31:26.437Z","avatar_url":"https://github.com/JoanZapata.png","language":"Java","funding_links":[],"categories":["Java","图标","Libs","etc"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# Note: Due to lack of time, Iconify is no longer maintained and icon packs are outdated. I'd be very happy to welcome a new contributor, please reach me on twitter [@JoanZap](https://twitter.com/joanzap) if by any chance you're interested. 🙂\n\n\u003cimg src=\"graphics/logo.jpg\" height=\"154\" align=\"center\"\u003e\n\n[\u003cimg src=\"https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png\" width=\"121\"\u003e](https://play.google.com/store/apps/details?id=com.joanzapata.android.icons.sample)\n\n**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**. It has been introduced in [**this blog post**](http://blog.joanzapata.com/iconify-just-got-a-lot-better/) which is a good place to get started. \n\n-----\n\n### Install\n\nPick any number of modules and declare them in your `Application`.\n\n```gradle\ndependencies {\n    compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2' // (v4.5)\n    compile 'com.joanzapata.iconify:android-iconify-entypo:2.2.2' // (v3,2015)\n    compile 'com.joanzapata.iconify:android-iconify-typicons:2.2.2' // (v2.0.7)\n    compile 'com.joanzapata.iconify:android-iconify-material:2.2.2' // (v2.0.0)\n    compile 'com.joanzapata.iconify:android-iconify-material-community:2.2.2' // (v1.4.57)\n    compile 'com.joanzapata.iconify:android-iconify-meteocons:2.2.2' // (latest)\n    compile 'com.joanzapata.iconify:android-iconify-weathericons:2.2.2' // (v2.0)\n    compile 'com.joanzapata.iconify:android-iconify-simplelineicons:2.2.2' // (v1.0.0)\n    compile 'com.joanzapata.iconify:android-iconify-ionicons:2.2.2' // (v2.0.1)\n}\n```\n\n```java\npublic class MyApplication extends Application {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        Iconify\n            .with(new FontAwesomeModule())\n            .with(new EntypoModule())\n            .with(new TypiconsModule())\n            .with(new MaterialModule())\n            .with(new MaterialCommunityModule())\n            .with(new MeteoconsModule())\n            .with(new WeathericonsModule())\n            .with(new SimpleLineIconsModule())\n            .with(new IoniconsModule());\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```xml\n\u003ccom.joanzapata.iconify.widget.IconTextView\n    android:text=\"I {fa-heart-o} to {fa-code} on {fa-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\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/JoanZapata/android-iconify/blob/master/android-iconify-fontawesome/src/main/java/com/joanzapata/iconify/fonts/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\ncompile 'com.joanzapata.iconify:android-iconify:2.2.2'\n```\n\n-----\n\n## Contributions\n\n* Joan Zapata [@JoanZapata](https://github.com/JoanZapata)\n* Damien Villeneuve [@DayS](https://github.com/DayS)\n* Mike Penz [@mikepenz](https://github.com/mikepenz)\n\n## License\n\n```\nCopyright 2015 Joan Zapata\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nIt uses FontAwesome font by Dave Gandy, licensed under OFL 1.1, which is compatible\nwith this library's license.\n\n    http://scripts.sil.org/cms/scripts/render_download.php?format=file\u0026media_id=OFL_plaintext\u0026filename=OFL.txt\n    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoanZapata%2Fandroid-iconify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJoanZapata%2Fandroid-iconify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoanZapata%2Fandroid-iconify/lists"}