{"id":13643019,"url":"https://github.com/bassaer/MaterialDesignColors","last_synced_at":"2025-04-20T21:32:34.848Z","repository":{"id":99111515,"uuid":"82374747","full_name":"bassaer/MaterialDesignColors","owner":"bassaer","description":"Android library which provides Google Material Design Colors","archived":false,"fork":false,"pushed_at":"2017-03-07T04:18:26.000Z","size":212,"stargazers_count":72,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T14:40:33.559Z","etag":null,"topics":[],"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/bassaer.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}},"created_at":"2017-02-18T09:03:15.000Z","updated_at":"2024-03-21T23:15:26.000Z","dependencies_parsed_at":"2023-06-03T22:15:30.264Z","dependency_job_id":null,"html_url":"https://github.com/bassaer/MaterialDesignColors","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bassaer%2FMaterialDesignColors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bassaer%2FMaterialDesignColors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bassaer%2FMaterialDesignColors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bassaer%2FMaterialDesignColors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bassaer","download_url":"https://codeload.github.com/bassaer/MaterialDesignColors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965547,"owners_count":21352925,"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-08-02T01:01:39.622Z","updated_at":"2025-04-20T21:32:34.563Z","avatar_url":"https://github.com/bassaer.png","language":"Java","readme":"# MaterialDesignColors\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MaterialDesignColors-red.svg?style=flat)](https://android-arsenal.com/details/1/5384)\n[![Download](https://api.bintray.com/packages/tnakayama/MaterialDesignColors/materialdesigncolors/images/download.svg) ](https://bintray.com/tnakayama/MaterialDesignColors/materialdesigncolors/_latestVersion)\n[![API](https://img.shields.io/badge/API-9%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=9)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bassaer/MaterialDesignColors/blob/master/LICENSE)\n\nAndroid library which provides [Google Material Design Colors](https://material.io/guidelines/style/color.html)\n\n\u003cimg src=\"https://github.com/bassaer/MaterialDesignColors/blob/develop/images/mdc_screen.png\" height=\"400\"\u003e\n\n## Gradle\n\n[![Download](https://api.bintray.com/packages/tnakayama/MaterialDesignColors/materialdesigncolors/images/download.svg) ](https://bintray.com/tnakayama/MaterialDesignColors/materialdesigncolors/_latestVersion)\n\n```\ndependencies {\n    compile 'com.github.bassaer:materialdesigncolors:1.0.0'\n}\n```\n\n## Usage\n\n\n```\n@Override\npublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n    View rootView = inflater.inflate(R.layout.fragment_color_icon, container, false);\n\n    ImageView icon1 = (ImageView) rootView.findViewById(R.id.icon1);\n    ImageView icon2 = (ImageView) rootView.findViewById(R.id.icon2);\n    ImageView icon3 = (ImageView) rootView.findViewById(R.id.icon3);\n    ImageView icon4 = (ImageView) rootView.findViewById(R.id.icon4);\n    ImageView icon5 = (ImageView) rootView.findViewById(R.id.icon5);\n    ImageView icon6 = (ImageView) rootView.findViewById(R.id.icon6);\n\n    //Set icon colors\n    icon1.getDrawable().setTint(MDColor.RED_500);\n    icon2.getDrawable().setTint(MDColor.RED_400);\n    icon3.getDrawable().setTint(MDColor.RED_300);\n\n    icon4.getDrawable().setTint(MDColor.TEAL_500);\n    icon5.getDrawable().setTint(MDColor.TEAL_400);\n    icon6.getDrawable().setTint(MDColor.TEAL_300);\n\n    TextView textView = (TextView) rootView.findViewById(R.id.text_view);\n    //Set Text color\n    textView.setTextColor(MDColor.YELLOW_500);\n    //Set background color\n    textView.setBackgroundColor(MDColor.INDIGO_500);\n\n    return rootView;\n}\n\n```\n\nOr can be used as color resource for layout file.\n \n```\n\u003cImageView\n    android:id=\"@+id/top_icon\"\n    android:layout_width=\"@dimen/icon_size\"\n    android:layout_height=\"@dimen/icon_size\"\n    android:layout_gravity=\"center\"\n    android:src=\"@drawable/ic_action_android\"\n    android:tint=\"@color/cyan_500\"/\u003e\n```\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2017 Tsubasa Nakayama\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":["Color"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbassaer%2FMaterialDesignColors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbassaer%2FMaterialDesignColors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbassaer%2FMaterialDesignColors/lists"}