{"id":27695093,"url":"https://github.com/outadoc/mdi-android","last_synced_at":"2025-08-30T10:46:37.442Z","repository":{"id":43336319,"uuid":"308459507","full_name":"outadoc/mdi-android","owner":"outadoc","description":"Android library that provides the latest Material Design Icons (@templarian/MaterialDesign)","archived":false,"fork":false,"pushed_at":"2022-11-11T19:33:29.000Z","size":555,"stargazers_count":3,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-08-30T10:46:33.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outadoc.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}},"created_at":"2020-10-29T21:58:29.000Z","updated_at":"2024-08-27T02:54:27.000Z","dependencies_parsed_at":"2022-09-14T01:14:02.080Z","dependency_job_id":null,"html_url":"https://github.com/outadoc/mdi-android","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/outadoc/mdi-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmdi-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmdi-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmdi-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmdi-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outadoc","download_url":"https://codeload.github.com/outadoc/mdi-android/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmdi-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839678,"owners_count":25001862,"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-08-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2025-04-25T14:15:40.644Z","updated_at":"2025-08-30T10:46:37.383Z","avatar_url":"https://github.com/outadoc.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdi-android\nThis library provides an Android wrapper around the [Material Design Icons](https://materialdesignicons.com/)\nicon library, for convenient use in Android applications.\n\nTHE ICONS WRAPPED BY THIS LIBRARY ARE PROVIDED AS-IS AND COPYRIGHTED TO A THIRD-PARTY. Please see the\nLicense section for details.\n\n## Setup\nThis library is hosted on Github Packages. In your projec's root `build.gradle.kts` file, add the Github Packages repository:\n\n```kt\nallprojects {\n    repositories {\n        google()\n        mavenCentral()\n\n        // [...]\n\n        maven(url = \"https://maven.pkg.github.com/outadoc/mdi-android\") {\n            credentials {\n                username = \"token\"\n                password = \"TOKEN-WITH-READ-PACKAGES-ROLE-HERE\"\n            }\n        }\n    }\n}\n```\n\nYou will need to [generate a Github Access Token](https://github.com/settings/tokens/new). Give it the `read:packages` scope.\n\nIn your module's `build.gradle.kts`, add the dependency:\n\n```kt\ndependencies {\n    // [...]\n    implementation(\"fr.outadoc.mdi:mdi-android:+\")\n}\n```\n\n## Usage\nYou can use a custom view to display your icons:\n\n```xml\n\u003cfr.outadoc.mdi.MdiFontIconView\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:textSize=\"32sp\"\n    app:iconName=\"toaster-oven\" /\u003e\n```\n\nYou can also use a standard appcompat `TextView`. You just have to set the `TextAppearance.MaterialDesignIcons`\ntext appearance on it.\n\n```xml\n\u003cTextView\n    android:id=\"@+id/textView_fontIcon_example\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:textAppearance=\"@style/TextAppearance.MaterialDesignIcons\"\n    android:textSize=\"32sp\" /\u003e\n```\n\nIn code, setup the library and convert the icon's reference into the right object.\n\n```kt\n// Create an instance of the Android icon mapper with a Context,\n// and set it on the MdiMapperLocator. Do this in your Application class or similar.\nMdiMapperLocator.instance = AndroidMdiMapper(applicationContext)\n\n// Convert an icon's reference to a proper font icon instance\nval icon1: MdiFontIcon  = \"toaster-oven\".toIcon()\nval icon2: MdiFontIcon? = \"toaster-oven\".toIconOrNull()\n\n// Set the icon on the TextView\ntextView_fontIcon_example.setText(icon1.unicodePoint)\n\n// Or using the ktx\ntextView_fontIcon_example.setIcon(icon1)\n```\n\n## Sample application\nYou will find a sample application [in this repo](sample/) that uses the library to display all available icons.\n\n|   |   |\n|---|---|\n| ![Screenshot 1](assets/sample-screenshot0.png) | ![Screenshot 2](assets/sample-screenshot1.png) |\n\n## License\nThe icons provided by this library are made and maintained by the [Pictogrammers](http://pictogrammers.com/)\nicon group. See more at @templarian/MaterialDesign.\n\nThe source code of this repository is available under the Apache 2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutadoc%2Fmdi-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutadoc%2Fmdi-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutadoc%2Fmdi-android/lists"}