[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7482":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":14,"starSnapshotCount":14,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},7482,"Android-SwitchIcon","zagum\u002FAndroid-SwitchIcon","zagum","Google launcher-style implementation of switch (enable\u002Fdisable) icon",null,"Kotlin",2314,219,43,0,1,59.13,"Apache License 2.0",false,"master",true,[22,23,24,25,26],"android","icons","material","material-ui","switch","2026-06-12 04:00:33","Android-SwitchIcon\n================\n\n[![](https:\u002F\u002Fjitpack.io\u002Fv\u002Fzagum\u002FAndroid-SwitchIcon.svg)](https:\u002F\u002Fjitpack.io\u002F#zagum\u002FAndroid-SwitchIcon)\n[![API](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAPI-15%2B-brightgreen.svg?style=flat)](https:\u002F\u002Fandroid-arsenal.com\u002Fapi?level=15)\n\nGoogle launcher-style implementation of switch (enable\u002Fdisable) icon\n\n![image](https:\u002F\u002Fgithub.com\u002Fzagum\u002FAndroid-SwitchIcon\u002Fblob\u002Fmaster\u002Fart\u002Fsample.gif)\n\nCompatibility\n-------------\n\nThis library is compatible from API 15 (Android 4.0.3).\n\nDownload\n--------\n\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https:\u002F\u002Fjitpack.io\" }\n    }\n}\n```\n\nAdd the dependency\n\n```groovy\ndependencies {\n    implementation 'com.github.zagum:Android-SwitchIcon:1.4.2'\n}\n```\n\nUsage\n-----\n\nSwitchIconView extends from AppCompatImageView so you can set icon with  ```app:srcCompat```\n\nSet any icon (vector or image) to SwitchIconView and enjoy switchable icon in your app :)\n\nUse ```app:si_tint_color``` to set color to icon. Default color is black;\n\nUse ```app:si_disabled_color``` to set color when icon disabled. Default color is equals with ```app:si_tint_color```;\n\nUse ```app:si_disabled_alpha``` to set alpha when icon disabled. Default alpha is ```.5```;\n\nUse ```app:si_no_dash``` if you don't want to draw dash, when icon disabled;\n\nUse ```app:si_animation_duration``` if you want to change switching state animation duration;\n\nUse ```app:si_enabled``` to set initial icon state;\n\nFully customized implementation:\n\n```xml\n    \u003Ccom.github.zagum.switchicon.SwitchIconView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:padding=\"8dp\"\n        app:si_animation_duration=\"500\"\n        app:si_disabled_alpha=\".3\"\n        app:si_disabled_color=\"#b7b7b7\"\n        app:si_tint_color=\"#ff3c00\"\n        app:si_enabled=\"false\"\n        app:si_no_dash=\"true\"\n        app:srcCompat=\"@drawable\u002Fic_cloud\"\u002F>\n```\n\nPublic methods and fields: \n\n```kotlin\n\n  var isIconEnabled: Boolean\n\n  fun setIconEnabled(enabled: Boolean, animate: Boolean = true)\n\n  fun switchState(animate: Boolean = true)\n  \n```\n\nSee [sample](https:\u002F\u002Fgithub.com\u002Fzagum\u002FAndroid-SwitchIcon\u002Ftree\u002Fmaster\u002Fswitchicon-sample) project for more information.\n\nLicense\n-------\n\n    Copyright 2017 Evgenii Zagumennyi\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:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-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","Android-SwitchIcon 是一个实现类似 Google 启动器风格的图标开关（启用\u002F禁用）功能的库。它基于 Kotlin 开发，支持从 API 15（Android 4.0.3）开始的所有版本。核心功能包括通过简单的属性设置来控制图标的颜色、透明度以及是否显示虚线等，同时提供动画效果以增强用户体验。此外，还提供了公共方法和字段，方便开发者在代码中动态控制图标状态。适用于需要在应用内添加可切换状态图标的各种场景，如设置页面中的功能开关或权限管理界面。",2,"2026-06-11 03:12:42","top_language"]