├── .gitignore ├── README.md ├── docs ├── logo.png ├── sample-qrcode.png ├── sample.gif ├── switch-button-sample.apk ├── switch_frame.png ├── switch_slider_disable.png ├── switch_slider_normal.png ├── switch_state_disable.png ├── switch_state_mask.png └── switch_state_normal.png ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── ic_launcher-web.png ├── sample ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── me │ │ └── panpf │ │ └── switchbutton │ │ └── sample │ │ └── MainActivity.java │ └── res │ ├── drawable-hdpi │ └── ic_launcher.png │ ├── drawable-mdpi │ └── ic_launcher.png │ ├── drawable-xhdpi │ ├── ic_launcher.png │ ├── preference_center_normal.9.png │ ├── preference_center_pressed.9.png │ ├── preference_center_selected.9.png │ ├── preference_footer_normal.9.png │ ├── preference_footer_pressed.9.png │ ├── preference_footer_selected.9.png │ ├── preference_header_normal.9.png │ ├── preference_header_pressed.9.png │ ├── preference_header_selected.9.png │ ├── preference_single_normal.9.png │ ├── preference_single_pressed.9.png │ └── preference_single_selected.9.png │ ├── drawable │ ├── selector_preference_center.xml │ ├── selector_preference_footer.xml │ ├── selector_preference_header.xml │ └── selector_preference_single.xml │ ├── layout │ └── activity_main.xml │ ├── values-v14 │ └── styles.xml │ ├── values-v21 │ └── styles.xml │ └── values │ ├── strings.xml │ └── styles.xml ├── settings.gradle └── switch-button ├── .gitignore ├── bintrayUpload.gradle ├── build.gradle ├── proguard-rules.pro ├── project.properties └── src └── main ├── AndroidManifest.xml ├── java └── me │ └── panpf │ └── switchbutton │ └── SwitchButton.java └── res ├── drawable-xhdpi ├── switch_frame.png ├── switch_slider_disable.png ├── switch_slider_normal.png ├── switch_state_disable.png ├── switch_state_mask.png └── switch_state_normal.png ├── drawable ├── selector_switch_slider.xml └── selector_switch_state.xml └── values └── attrs.xml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/README.md -------------------------------------------------------------------------------- /docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/logo.png -------------------------------------------------------------------------------- /docs/sample-qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/sample-qrcode.png -------------------------------------------------------------------------------- /docs/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/sample.gif -------------------------------------------------------------------------------- /docs/switch-button-sample.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch-button-sample.apk -------------------------------------------------------------------------------- /docs/switch_frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_frame.png -------------------------------------------------------------------------------- /docs/switch_slider_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_slider_disable.png -------------------------------------------------------------------------------- /docs/switch_slider_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_slider_normal.png -------------------------------------------------------------------------------- /docs/switch_state_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_state_disable.png -------------------------------------------------------------------------------- /docs/switch_state_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_state_mask.png -------------------------------------------------------------------------------- /docs/switch_state_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/docs/switch_state_normal.png -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/gradlew.bat -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /sample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/build.gradle -------------------------------------------------------------------------------- /sample/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/proguard-rules.pro -------------------------------------------------------------------------------- /sample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /sample/src/main/java/me/panpf/switchbutton/sample/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/java/me/panpf/switchbutton/sample/MainActivity.java -------------------------------------------------------------------------------- /sample/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_center_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_center_normal.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_center_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_center_pressed.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_center_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_center_selected.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_footer_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_footer_normal.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_footer_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_footer_pressed.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_footer_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_footer_selected.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_header_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_header_normal.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_header_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_header_pressed.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_header_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_header_selected.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_single_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_single_normal.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_single_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_single_pressed.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xhdpi/preference_single_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable-xhdpi/preference_single_selected.9.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_preference_center.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable/selector_preference_center.xml -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_preference_footer.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable/selector_preference_footer.xml -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_preference_header.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable/selector_preference_header.xml -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_preference_single.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/drawable/selector_preference_single.xml -------------------------------------------------------------------------------- /sample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /sample/src/main/res/values-v14/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/values-v14/styles.xml -------------------------------------------------------------------------------- /sample/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/values-v21/styles.xml -------------------------------------------------------------------------------- /sample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /sample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/sample/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/settings.gradle -------------------------------------------------------------------------------- /switch-button/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /switch-button/bintrayUpload.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/bintrayUpload.gradle -------------------------------------------------------------------------------- /switch-button/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/build.gradle -------------------------------------------------------------------------------- /switch-button/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/proguard-rules.pro -------------------------------------------------------------------------------- /switch-button/project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/project.properties -------------------------------------------------------------------------------- /switch-button/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /switch-button/src/main/java/me/panpf/switchbutton/SwitchButton.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/java/me/panpf/switchbutton/SwitchButton.java -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_frame.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_slider_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_slider_disable.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_slider_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_slider_normal.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_state_disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_state_disable.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_state_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_state_mask.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable-xhdpi/switch_state_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable-xhdpi/switch_state_normal.png -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable/selector_switch_slider.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable/selector_switch_slider.xml -------------------------------------------------------------------------------- /switch-button/src/main/res/drawable/selector_switch_state.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/drawable/selector_switch_state.xml -------------------------------------------------------------------------------- /switch-button/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/panpf/switch-button/HEAD/switch-button/src/main/res/values/attrs.xml --------------------------------------------------------------------------------