├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── fragment_recycler.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_nest_scroll.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── sign │ │ │ └── signchart │ │ │ ├── nestscroll │ │ │ ├── RecyclerFragment.java │ │ │ └── NestScrollActivity.java │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── sign │ │ │ └── signchart │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── sign │ │ └── signchart │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── git-hook.gradle ├── settings.gradle ├── .DS_Store ├── gif └── example.gif ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── wheelchart ├── src │ └── main │ │ ├── res │ │ └── values │ │ │ ├── strings.xml │ │ │ ├── color.xml │ │ │ └── attr.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── sign │ │ └── wheelchart │ │ ├── Entry.java │ │ ├── Utils.java │ │ ├── WheelChartLayout.java │ │ └── HorizontalWheelChartView.java ├── .gitignore ├── proguard-rules.pro └── build.gradle ├── .idea ├── encodings.xml ├── compiler.xml ├── vcs.xml ├── misc.xml ├── modules.xml ├── checkstyle-idea.xml └── jarRepositories.xml ├── gitHooks └── commit-msg ├── gradle.properties ├── .gitignore ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':wheelchart' 2 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/.DS_Store -------------------------------------------------------------------------------- /gif/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/gif/example.gif -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WheelChart 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /wheelchart/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WheelChart 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /wheelchart/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /wheelchart/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongshengdev/WheelChart/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /wheelchart/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #666666 4 | #000000 5 | #06C0D8 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Apr 22 17:37:19 CST 2019 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.1.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /gitHooks/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 获取当前提交的 commit msg 4 | commit_msg=`cat $1` 5 | 6 | msg_re="^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .{2,}" 7 | 8 | if [[ ! $commit_msg =~ $msg_re ]] 9 | then 10 | echo "commit消息提交不合法,请使用IDEA约束插件 Git Commit Template 格式化,详情请查看Commit Message格式:https://www.yuque.com/docs/share/9a4bf0a0-902a-4347-9b9f-48e162af691d?# 《代码review流程及工具整理》\n" 11 | 12 | # 异常退出 13 | exit 1 14 | fi 15 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_recycler.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | -------------------------------------------------------------------------------- /app/src/test/java/com/sign/signchart/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.sign.signchart; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/checkstyle-idea.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /wheelchart/src/main/java/com/sign/wheelchart/Entry.java: -------------------------------------------------------------------------------- 1 | package com.sign.wheelchart; 2 | 3 | /** 4 | * Created by CaoYongSheng 5 | * on 2019-04-23 6 | * 7 | * @author admin 8 | */ 9 | public class Entry { 10 | private String xLabel; 11 | private double yValue; 12 | 13 | public Entry(String xLabel, double yValue) { 14 | this.xLabel = xLabel; 15 | this.yValue = yValue; 16 | } 17 | 18 | public String getXLabel() { 19 | return xLabel; 20 | } 21 | 22 | public void setXLabel(String xLabel) { 23 | this.xLabel = xLabel; 24 | } 25 | 26 | public double getYValue() { 27 | return yValue; 28 | } 29 | 30 | public void setYValue(double yValue) { 31 | this.yValue = yValue; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /wheelchart/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/sign/signchart/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.sign.signchart; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.sign.signchart", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /wheelchart/src/main/java/com/sign/wheelchart/Utils.java: -------------------------------------------------------------------------------- 1 | package com.sign.wheelchart; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.util.DisplayMetrics; 6 | import android.util.TypedValue; 7 | 8 | /** 9 | * Created by CaoYongSheng 10 | * on 2019-04-22 11 | * 12 | * @author admin 13 | */ 14 | public class Utils { 15 | public static float dp2px(Context context, float dpValue) { 16 | return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpValue, context.getResources().getDisplayMetrics()); 17 | } 18 | public static float sp2px(Context context, float dpValue) { 19 | return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, dpValue, context.getResources().getDisplayMetrics()); 20 | } 21 | public static int getScreenWidth(Context context) { 22 | DisplayMetrics localDisplayMetrics = new DisplayMetrics(); 23 | ((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(localDisplayMetrics); 24 | return localDisplayMetrics.widthPixels; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply from: 'git-hook.gradle' 3 | 4 | android { 5 | compileSdkVersion 28 6 | defaultConfig { 7 | applicationId "com.sign.signchart" 8 | minSdkVersion 16 9 | targetSdkVersion 28 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | implementation 'com.android.support:appcompat-v7:28.0.0' 25 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 26 | testImplementation 'junit:junit:4.12' 27 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 28 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 29 | implementation 'com.android.support:design:28.0.0' 30 | implementation 'com.sign.wheelchart:wheelchart:1.1.1' 31 | } 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # IntelliJ 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/assetWizardSettings.xml 41 | .idea/dictionaries 42 | .idea/libraries 43 | .idea/caches 44 | 45 | # Keystore files 46 | # Uncomment the following line if you do not want to check your keystore files in. 47 | #*.jks 48 | 49 | # External native build folder generated in Android Studio 2.2 and later 50 | .externalNativeBuild 51 | 52 | # Google Services (e.g. APIs or Firebase) 53 | google-services.json 54 | 55 | # Freeline 56 | freeline.py 57 | freeline/ 58 | freeline_project_description.json 59 | 60 | # fastlane 61 | fastlane/report.xml 62 | fastlane/Preview.html 63 | fastlane/screenshots 64 | fastlane/test_output 65 | fastlane/readme.md 66 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WheelChart 2 | **Usage** 3 | 4 | ```implementation 'com.sign.wheelchart:wheelchart:1.1.1'``` 5 | 6 | ``` 7 | 14 | ``` 15 | 16 | **Features** 17 | - 绘制横向图表 18 | - 可拖动并处理惯性滚动事件 19 | - 拖动或惯性滚动结束后,自动选中离中心最近的下标 20 | - 点击图表,根据点击区域选中离点击区域最近的下标 21 | - 处理嵌套滚动 22 | 23 | **blog** 24 | 25 | https://blog.csdn.net/SS_S1gn/article/details/89599605 26 | 27 | **Screens** 28 | 29 | ![](https://github.com/SilenceBurst/WheelChart/blob/master/gif/example.gif) 30 | 31 | **Contributing** 32 | 33 | Yes:) If you found a bug, have an idea how to improve library or have a question, please create new issue or comment existing one. If you would like to contribute code fork the repository and send a pull request. 34 | 35 | **Email** 36 | 37 | yongshengdev@163.com 38 | 39 | **Special Thanks** 40 | 41 | [hencoder](https://hencoder.com/) 42 | https://github.com/totond/BooheeRuler 43 | 44 | **bug fix** 45 | 46 | 1.1.1 第一次打开直接跳转到指定位置; 47 | 将计算最大值、最小值逻辑放在setData中处理 不必特殊计算 48 | y轴单位可修改 49 | 50 | 1.1.0 修复sumsung s6滚动完毕不能回滚到中心区域的bug 51 | -------------------------------------------------------------------------------- /app/git-hook.gradle: -------------------------------------------------------------------------------- 1 | /** 2 | * 用法: 3 | * apply from: 'git-hook.gradle' 4 | */ 5 | 6 | /** 7 | * 紧急开关 8 | */ 9 | def forbid = false 10 | 11 | project.afterEvaluate { 12 | if (forbid) { 13 | preBuild.dependsOn 'resetGitHookConfig' 14 | } else { 15 | preBuild.dependsOn 'prepareGitHookConfig' 16 | } 17 | } 18 | 19 | task resetGitHookConfig { 20 | doFirst { 21 | File file = getGitHookFile('commit-msg') 22 | if (file != null) { 23 | file.delete() 24 | } 25 | } 26 | } 27 | 28 | def getGitHookFile(fileName) { 29 | def dirPath = getGitHookDir() 30 | if (dirPath != null && dirPath.length() > 0) { 31 | def file = new File(dirPath, fileName) 32 | if (file.exists()) { 33 | return file 34 | } 35 | } 36 | return null 37 | } 38 | 39 | task prepareGitHookConfig(type: Copy) { 40 | from getConfigFile() 41 | into getGitHookDir() 42 | // 需要添加权限 43 | fileMode 0755 44 | } 45 | 46 | def getConfigFile() { 47 | File configFile = new File(project.rootDir, "gitHooks/commit-msg") 48 | if (configFile.exists()) { 49 | return configFile.absolutePath 50 | } 51 | return null 52 | } 53 | 54 | def getGitHookDir() { 55 | File gitHookDir = new File(project.rootDir, ".git/hooks/") 56 | if (!gitHookDir.exists()) { 57 | println("can't find .git directory in the ${project.rootDir.absolutePath}," + 58 | " please ensure it have been tracked by git!") 59 | return null 60 | } 61 | return gitHookDir.absolutePath 62 | } 63 | -------------------------------------------------------------------------------- /wheelchart/src/main/res/values/attr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 28 | 29 | 35 | 36 | 43 | 44 |