├── settings.gradle ├── images ├── land.webp └── port.webp ├── library ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ ├── values │ │ │ ├── public.xml │ │ │ ├── attrs.xml │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── values-sw600dp-land │ │ │ └── dimens.xml │ │ ├── values-sw720dp-land │ │ │ └── dimens.xml │ │ ├── values-sw600dp │ │ │ └── dimens.xml │ │ ├── values-land │ │ │ └── dimens.xml │ │ ├── layout │ │ │ ├── hpv_divider.xml │ │ │ ├── hpv_content.xml │ │ │ ├── hpv_view.xml │ │ │ ├── hpv_time.xml │ │ │ └── hpv_digits.xml │ │ ├── values-ja │ │ │ └── strings.xml │ │ ├── values-zh-rCN │ │ │ └── strings.xml │ │ ├── values-zh-rHK │ │ │ └── strings.xml │ │ ├── values-zh-rTW │ │ │ └── strings.xml │ │ ├── values-es │ │ │ └── strings.xml │ │ ├── values-de │ │ │ └── strings.xml │ │ ├── values-nl │ │ │ └── strings.xml │ │ ├── values-hi │ │ │ └── strings.xml │ │ ├── values-pt │ │ │ └── strings.xml │ │ ├── values-fr │ │ │ └── strings.xml │ │ ├── layout-land │ │ │ └── hpv_content.xml │ │ ├── drawable │ │ │ └── hpv_ic_backspace.xml │ │ ├── values-pl │ │ │ └── strings.xml │ │ ├── values-ru │ │ │ └── strings.xml │ │ └── values-ar │ │ │ └── strings.xml │ │ └── java │ │ └── xyz │ │ └── aprildown │ │ └── hmspickerview │ │ ├── Utils.kt │ │ └── HmsPickerView.kt └── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── app ├── src │ └── main │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ ├── 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 │ │ ├── values-night │ │ │ └── styles.xml │ │ ├── layout │ │ │ ├── layout_picker.xml │ │ │ └── activity_main.xml │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ └── drawable │ │ │ └── ic_launcher_background.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── xyz │ │ └── aprildown │ │ └── hmspickerview │ │ └── app │ │ └── MainActivity.kt ├── proguard-rules.pro └── build.gradle ├── gradle.properties ├── gradlew.bat ├── README.md ├── gradlew ├── .gitignore └── LICENSE /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | -------------------------------------------------------------------------------- /images/land.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/images/land.webp -------------------------------------------------------------------------------- /images/port.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/images/port.webp -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /library/src/main/res/values/public.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HmsPickerView 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/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/DeweyReed/HmsPickerView/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/DeweyReed/HmsPickerView/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/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeweyReed/HmsPickerView/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /library/src/main/res/values-sw600dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19sp 4 | -------------------------------------------------------------------------------- /library/src/main/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19sp 4 | -------------------------------------------------------------------------------- /library/src/main/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21sp 4 | 32dp 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Apr 19 18:41:42 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-6.4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /library/src/main/res/values-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12sp 4 | 5 | 24sp 6 | 8dp 7 | 8 | 32sp 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /library/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /library/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14sp 5 | 6 | 24dp 7 | 8 | 40sp 9 | 16dp 10 | 11 | 40sp 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /library/src/main/res/layout/hpv_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | android { 6 | compileSdkVersion compile_sdk 7 | defaultConfig { 8 | minSdkVersion min_sdk 9 | targetSdkVersion target_sdk 10 | versionCode version_code 11 | versionName version_name 12 | vectorDrawables.useSupportLibrary true 13 | } 14 | resourcePrefix 'hpv_' 15 | } 16 | 17 | dependencies { 18 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 19 | implementation "androidx.appcompat:appcompat:$appcompat_version" 20 | } 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion compile_sdk 9 | defaultConfig { 10 | applicationId "xyz.aprildown.hmspickerview.app" 11 | minSdkVersion min_sdk 12 | targetSdkVersion target_sdk 13 | versionCode version_code 14 | versionName version_name 15 | vectorDrawables.useSupportLibrary true 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation project(':library') 27 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 28 | implementation "androidx.appcompat:appcompat:$appcompat_version" 29 | 30 | implementation 'com.google.android.material:material:1.1.0' 31 | } 32 | -------------------------------------------------------------------------------- /library/src/main/res/values-ja/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 削除 5 | 6 | %sを削除 7 | 8 | h 9 | m 10 | s 11 | 12 | %1$s%2$s%3$s 13 | 14 | 15 | %s時間 16 | 17 | 18 | 19 | %s 20 | 21 | 22 | 23 | %s 24 | 25 | 26 | -------------------------------------------------------------------------------- /library/src/main/res/values-zh-rCN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 删除 5 | 6 | 删除 %s 7 | 8 | 小时 9 | 10 | 11 | 12 | %1$s %2$s %3$s 13 | 14 | 15 | %s 小时 16 | 17 | 18 | 19 | %s 分钟 20 | 21 | 22 | 23 | %s 24 | 25 | 26 | -------------------------------------------------------------------------------- /library/src/main/res/values-zh-rHK/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 刪除 5 | 6 | 刪除 %s 7 | 8 | 9 | 10 | 11 | 12 | %1$s %2$s %3$s 13 | 14 | 15 | %s 小時 16 | 17 | 18 | 19 | %s 分鐘 20 | 21 | 22 | 23 | %s 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /library/src/main/res/values-zh-rTW/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 刪除 5 | 6 | 刪除 %s 7 | 8 | 9 | 10 | 11 | 12 | %1$s%2$s%3$s 13 | 14 | 15 | %s 小時 16 | 17 | 18 | 19 | %s 分鐘 20 | 21 | 22 | 23 | %s 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /library/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 20 | 21 | -------------------------------------------------------------------------------- /library/src/main/res/values-es/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Eliminar 5 | 6 | Eliminar %s 7 | 8 | h 9 | m 10 | s 11 | 12 | %1$s, %2$s y %3$s 13 | 14 | 15 | %s horas 16 | 1 hora 17 | 18 | 19 | 20 | %s minutos 21 | 1 minuto 22 | 23 | 24 | 25 | %s segundos 26 | 1 segundo 27 | 28 | 29 | -------------------------------------------------------------------------------- /library/src/main/res/values-de/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Löschen 5 | 6 | %s löschen 7 | 8 | h 9 | m 10 | s 11 | 12 | %1$s, %2$s, %3$s 13 | 14 | 15 | %s Stunden 16 | 1 Stunde 17 | 18 | 19 | 20 | %s Minuten 21 | 1 Minute 22 | 23 | 24 | 25 | %s Sekunden 26 | 1 Sekunde 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /library/src/main/res/values-nl/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Verwijderen 5 | 6 | %s verwijderen 7 | 8 | u 9 | m 10 | s 11 | 12 | %1$s, %2$s, %3$s 13 | 14 | 15 | %s uur 16 | 1 uur 17 | 18 | 19 | 20 | %s minuten 21 | 1 minuut 22 | 23 | 24 | 25 | %s seconden 26 | 1 seconde 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | # Kotlin code style for this project: "official" or "obsolete": 21 | kotlin.code.style=official 22 | -------------------------------------------------------------------------------- /library/src/main/res/values-hi/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | हटाएं 5 | 6 | %s हटाएं 7 | 8 | घं. 9 | मि. 10 | से. 11 | 12 | %1$s, %2$s, %3$s 13 | 14 | 15 | %s घंटे 16 | %s घंटे 17 | 18 | 19 | 20 | %s मिनट 21 | %s मिनट 22 | 23 | 24 | 25 | %s सेकंड 26 | %s सेकंड 27 | 28 | 29 | -------------------------------------------------------------------------------- /library/src/main/res/values-pt/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Excluir 5 | 6 | Excluir %s 7 | 8 | h 9 | m 10 | s 11 | 12 | %1$s, %2$s, %3$s 13 | 14 | 15 | %s hora 16 | %s horas 17 | 18 | 19 | 20 | %s minuto 21 | %s minutos 22 | 23 | 24 | 25 | %s segundo 26 | %s segundos 27 | 28 | 29 | -------------------------------------------------------------------------------- /library/src/main/res/values-fr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Supprimer 5 | 6 | Supprimer le numéro \"%s\" 7 | 8 | h 9 | min 10 | s 11 | 12 | %1$s, %2$s, %3$s 13 | 14 | 15 | %s heure 16 | %s heures 17 | 18 | 19 | 20 | %s minute 21 | %s minutes 22 | 23 | 24 | 25 | %s seconde 26 | %s secondes 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /library/src/main/res/layout-land/hpv_content.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /library/src/main/res/layout/hpv_content.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 23 | 28 | 29 | 30 | 31 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /library/src/main/res/drawable/hpv_ic_backspace.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 17 |