{"id":13639312,"url":"https://github.com/glomadrian/material-animated-switch","last_synced_at":"2025-04-12T20:42:00.876Z","repository":{"id":33799438,"uuid":"37492969","full_name":"glomadrian/material-animated-switch","owner":"glomadrian","description":"A material Switch with icon animations and color transitions","archived":false,"fork":false,"pushed_at":"2020-02-28T18:49:16.000Z","size":237,"stargazers_count":1171,"open_issues_count":25,"forks_count":157,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-04T00:07:40.873Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glomadrian.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}},"created_at":"2015-06-15T21:42:51.000Z","updated_at":"2025-04-01T06:39:48.000Z","dependencies_parsed_at":"2022-09-15T21:42:22.696Z","dependency_job_id":null,"html_url":"https://github.com/glomadrian/material-animated-switch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glomadrian%2Fmaterial-animated-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glomadrian%2Fmaterial-animated-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glomadrian%2Fmaterial-animated-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glomadrian%2Fmaterial-animated-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glomadrian","download_url":"https://codeload.github.com/glomadrian/material-animated-switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631668,"owners_count":21136554,"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:00:59.512Z","updated_at":"2025-04-12T20:42:00.850Z","avatar_url":"https://github.com/glomadrian.png","language":"Java","funding_links":[],"categories":["SwitchButton","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"Material Animated Switch  \n-----------------\n[![Download](https://api.bintray.com/packages/glomadrian/maven/MaterialAnimatedSwitch/images/download.svg) ](https://bintray.com/glomadrian/maven/MaterialAnimatedSwitch/_latestVersion)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Material%20Animated%20Switch-green.svg?style=flat)](https://android-arsenal.com/details/1/1985)\n\nA material Switch with icon animations and color transitions\n\n\n\n![Demo Screenshot][1]\n\n![Demo Screenshot][2]\n\n\n### Sample video:\n\n[Youtube Material Animated Switch video](https://youtu.be/MBJpCfXuVuU)\n\n### Sample app:\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.github.glomadrian.materialanimatedswitch.sample\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"https://developer.android.com/images/brand/en_generic_rgb_wo_60.png\" /\u003e\n\u003c/a\u003e\n\nBased on\n----------\n\n[Inbox Pinned](https://dribbble.com/shots/2098916-Inbox-Pinned) by [Derek Torsani](https://dribbble.com/dmtors)\n\n\nHow to use\n----------\n\nBy default show the inbox pinned switch\n\n```xml\n\u003ccom.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch\n     android:id=\"@+id/pin\"\n     android:layout_width=\"wrap_content\"\n     android:layout_height=\"wrap_content\"\n     /\u003e\n```\n\n\nWith custom colors and icons attributes\n```xml\n\u003ccom.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch\n     android:id=\"@+id/pin\"\n     android:layout_width=\"wrap_content\"\n     android:layout_height=\"wrap_content\"  \n     app:base_release_color=\"@color/md_deep_orange_900\"\n     app:base_press_color=\"@color/md_deep_orange_50\"\n     app:ball_release_color=\"@color/md_deep_orange_500\"\n     app:ball_press_color=\"@color/md_white_1000\"\n     app:icon_release=\"@drawable/ic_play_arrow_white_36dp\"\n     app:icon_press=\"@drawable/ic_stop_deep_orange_500_36dp\"\n     /\u003e\n```\n\nRemember put this for custom attribute usage\n\n```java\n\nxmlns:app=\"http://schemas.android.com/apk/res-auto\"\n\n```\n\n\nFor Gradle\n---------------------\n\nAdd repository\n\n```groovy\nrepositories {\n  maven {\n    url \"http://dl.bintray.com/glomadrian/maven\"\n  }\n}\n```\nAdd dependency\n```groovy\ncompile 'com.github.glomadrian:MaterialAnimatedSwitch:1.1@aar'\n```\nChangelog\n---------------------\n\nV 1.1\n\n* Fixed bug that cut the ball at the start\n* Added isChecked() method\n* fix toggle() method\n\nDeveloped By\n------------\nAdrián García Lomas - \u003cglomadrian@gmail.com\u003e\n* [Twitter](https://twitter.com/glomadrian)\n* [LinkedIn](https://es.linkedin.com/in/glomadrian )\n\nLicense\n-------\n\n    Copyright 2015 Adrián García Lomas\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[1]: ./art/swtich.gif\n[2]: ./art/all.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglomadrian%2Fmaterial-animated-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglomadrian%2Fmaterial-animated-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglomadrian%2Fmaterial-animated-switch/lists"}