├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── common_back_white.png │ │ │ ├── common_loading_tiny1.png │ │ │ ├── common_loading_tiny2.png │ │ │ ├── common_loading_tiny3.png │ │ │ ├── common_loading_tiny4.png │ │ │ ├── common_loading_tiny5.png │ │ │ ├── common_loading_tiny6.png │ │ │ ├── common_loading_tiny7.png │ │ │ ├── common_loading_tiny8.png │ │ │ ├── common_loading_tiny9.png │ │ │ ├── common_right_arrow.png │ │ │ ├── common_loading_tiny10.png │ │ │ ├── common_loading_tiny11.png │ │ │ └── common_loading_tiny12.png │ │ ├── layout │ │ │ ├── recycler_list_content.xml │ │ │ ├── activity_list.xml │ │ │ ├── activity_recycler.xml │ │ │ ├── activity_main.xml │ │ │ ├── activity_normal.xml │ │ │ ├── activity_size_intro.xml │ │ │ └── activity_api_intro.xml │ │ └── drawable │ │ │ └── common_anim_list_loading_tiny.xml │ │ ├── java │ │ └── com │ │ │ └── github │ │ │ └── iielse │ │ │ └── switchbutton │ │ │ └── demo │ │ │ ├── ItemObject.java │ │ │ ├── SizeIntroActivity.java │ │ │ ├── MainActivity.java │ │ │ ├── APIIntroActivity.java │ │ │ ├── RecyclerActivity.java │ │ │ ├── ListActivity.java │ │ │ ├── SpfsUtils.java │ │ │ └── NormalActivity.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── switchbutton ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ └── values │ │ │ └── attrs.xml │ │ └── java │ │ └── com │ │ └── github │ │ └── iielse │ │ └── switchbutton │ │ └── SwitchView.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── previews ├── a.gif ├── b.gif ├── c.gif ├── 12345.png ├── 23456.png ├── 34567.png ├── 45678.png └── app-debug.apk ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /switchbutton/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':switchbutton' 2 | -------------------------------------------------------------------------------- /previews/a.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/a.gif -------------------------------------------------------------------------------- /previews/b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/b.gif -------------------------------------------------------------------------------- /previews/c.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/c.gif -------------------------------------------------------------------------------- /previews/12345.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/12345.png -------------------------------------------------------------------------------- /previews/23456.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/23456.png -------------------------------------------------------------------------------- /previews/34567.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/34567.png -------------------------------------------------------------------------------- /previews/45678.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/45678.png -------------------------------------------------------------------------------- /previews/app-debug.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/previews/app-debug.apk -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | switchbutton 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_back_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_back_white.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny3.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny4.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny5.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny6.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny7.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny8.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_right_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_right_arrow.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.svn 2 | *.iml 3 | .idea/ 4 | .gradle/ 5 | build/ 6 | /local.properties 7 | .DS_Store 8 | captures/ 9 | .externalNativeBuild 10 | import-summary.txt -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny10.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny11.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/common_loading_tiny12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iielse/switchbutton/HEAD/app/src/main/res/mipmap-xhdpi/common_loading_tiny12.png -------------------------------------------------------------------------------- /switchbutton/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/github/iielse/switchbutton/demo/ItemObject.java: -------------------------------------------------------------------------------- 1 | package com.github.iielse.switchbutton.demo; 2 | 3 | /** 4 | * Created by LY on 2016/9/13. 5 | */ 6 | public class ItemObject { 7 | String title; 8 | boolean isOpened; 9 | } 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 29 17:03:05 CST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /switchbutton/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 29 5 | buildToolsVersion "29.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 29 10 | versionCode 4 11 | versionName "1.0.4" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /switchbutton/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 14 | 15 |