{"id":21028698,"url":"https://github.com/luongvo/ios-switchview","last_synced_at":"2025-11-11T21:50:24.994Z","repository":{"id":53002877,"uuid":"84781556","full_name":"luongvo/iOS-SwitchView","owner":"luongvo","description":"A lightweight iOS switch view style for Android","archived":false,"fork":false,"pushed_at":"2023-02-08T05:26:12.000Z","size":254,"stargazers_count":84,"open_issues_count":6,"forks_count":26,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-05-15T11:33:31.352Z","etag":null,"topics":["android","android-widget","ios","library","switch-control"],"latest_commit_sha":null,"homepage":"","language":"Java","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/luongvo.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-13T03:47:16.000Z","updated_at":"2024-12-12T18:01:14.000Z","dependencies_parsed_at":"2024-11-19T12:07:10.101Z","dependency_job_id":"327e6c91-4673-4c20-bfa4-14401b91c5f8","html_url":"https://github.com/luongvo/iOS-SwitchView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/luongvo/iOS-SwitchView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvo%2FiOS-SwitchView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvo%2FiOS-SwitchView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvo%2FiOS-SwitchView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvo%2FiOS-SwitchView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luongvo","download_url":"https://codeload.github.com/luongvo/iOS-SwitchView/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvo%2FiOS-SwitchView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283937311,"owners_count":26919456,"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-11-11T02:00:06.610Z","response_time":65,"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":["android","android-widget","ios","library","switch-control"],"created_at":"2024-11-19T11:58:45.827Z","updated_at":"2025-11-11T21:50:24.977Z","avatar_url":"https://github.com/luongvo.png","language":"Java","readme":"# iOS-SwitchView\n[![](https://jitpack.io/v/luongvo/iOS-SwitchView.svg)](https://jitpack.io/#luongvo/iOS-SwitchView)\n\nA lightweight iOS switch view style for Android\n\n\u003cimg src=\"images/preview.gif\" width=\"500\"\u003e\n\n# Usage\nAdd SwitchView into xml layout\n```xml\n\u003cvn.luongvo.widget.iosswitchview.SwitchView\n    android:id=\"@+id/switchview\"\n    android:layout_width=\"50dp\"\n    android:layout_height=\"wrap_content\" /\u003e\n```\nor custom properties:\n```xml\n\u003cvn.luongvo.widget.iosswitchview.SwitchView\n    android:id=\"@+id/switchview\"\n    android:layout_width=\"50dp\"\n    android:layout_height=\"wrap_content\"\n    app:checked=\"true\"\n    app:color_off=\"#e13a8e\"\n    app:color_on=\"#ef5e43\" /\u003e\n```\nAdd listener in activty\n```java\nswitchView.setOnCheckedChangeListener(new SwitchView.OnCheckedChangeListener() {\n    @Override\n    public void onCheckedChanged(SwitchView switchView, boolean isChecked) {\n        Toast.makeText(MainActivity.this, \"onCheckedChanged: \" + isChecked, Toast.LENGTH_SHORT).show();\n    }\n});\n```\n\n# Installation\n**Step 1.** Add the JitPack repository to your build file\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n**Step 2.** Add the dependency\n```groovy\ndependencies {\n    compile 'com.github.luongvo:iOS-SwitchView:[LATEST_VERSION]'\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluongvo%2Fios-switchview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluongvo%2Fios-switchview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluongvo%2Fios-switchview/lists"}