├── sample ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-ldpi │ │ │ ├── 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 │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ └── activity_sample.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── kunzisoft │ │ └── switchdatetimesample │ │ └── Sample.java ├── build.gradle └── proguard-rules.pro ├── switchdatetime ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ ├── drawable │ │ │ └── ic_view_carousel_black_32dp.xml │ │ ├── anim │ │ │ ├── dialog_leave_to_left.xml │ │ │ ├── dialog_enter_from_left.xml │ │ │ ├── dialog_enter_from_right.xml │ │ │ ├── dialog_enter_from_top.xml │ │ │ ├── dialog_leave_to_bottom.xml │ │ │ └── dialog_leave_to_right.xml │ │ ├── values-xhdpi │ │ │ └── dimens.xml │ │ ├── values-sw340dp │ │ │ └── dimens.xml │ │ ├── values-sw260dp │ │ │ └── dimens.xml │ │ ├── values-sw600dp │ │ │ └── dimens.xml │ │ ├── values-sw720dp │ │ │ └── dimens.xml │ │ ├── layout │ │ │ ├── year_text.xml │ │ │ ├── year_text_indicator.xml │ │ │ ├── time_header_label.xml │ │ │ └── dialog_switch_datetime_picker.xml │ │ ├── values-hdpi │ │ │ └── dimens.xml │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── attrs.xml │ │ │ ├── dimens.xml │ │ │ └── styles.xml │ │ ├── values-ldpi │ │ │ └── dimens.xml │ │ ├── layout-ldrtl-v17 │ │ │ ├── time_header_label.xml │ │ │ └── dialog_switch_datetime_picker.xml │ │ ├── layout-ldrtl-land-v17 │ │ │ └── dialog_switch_datetime_picker.xml │ │ └── layout-land │ │ │ └── dialog_switch_datetime_picker.xml │ │ └── java │ │ └── com │ │ └── kunzisoft │ │ └── switchdatetime │ │ ├── date │ │ ├── OnYearSelectedListener.java │ │ └── widget │ │ │ ├── TextCircularIndicatorView.java │ │ │ ├── YearPickerAdapter.java │ │ │ └── ListPickerYearView.java │ │ ├── time │ │ └── widget │ │ │ ├── AccessibleTextView.java │ │ │ ├── TimeCircleView.java │ │ │ ├── TimeAmPmCirclesView.java │ │ │ ├── TimeRadialNumbersView.java │ │ │ └── TimeRadialSelectorView.java │ │ ├── Utils.java │ │ └── SwitchDateTimeDialogFragment.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── art ├── logo.png ├── demo1.gif ├── demo2.gif ├── screen1.png ├── screen2.jpg └── screen3.jpg ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── gradlew ├── ReadMe.md └── LICENSE /sample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /switchdatetime/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':sample', ':switchdatetime' 2 | -------------------------------------------------------------------------------- /art/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/logo.png -------------------------------------------------------------------------------- /art/demo1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/demo1.gif -------------------------------------------------------------------------------- /art/demo2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/demo2.gif -------------------------------------------------------------------------------- /art/screen1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/screen1.png -------------------------------------------------------------------------------- /art/screen2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/screen2.jpg -------------------------------------------------------------------------------- /art/screen3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/art/screen3.jpg -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-ldpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-ldpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kunzisoft/Android-SwitchDateTimePicker/HEAD/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | .directory 11 | .idea/ 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip 6 | -------------------------------------------------------------------------------- /sample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /sample/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #f44336 4 | #b71c1c 5 | #f44336 6 | 7 | -------------------------------------------------------------------------------- /switchdatetime/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /sample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Switch DateTime Picker 3 | Open DateTime Dialog 4 | Open DateTime Dialog with Neutral Button 5 | Clean 6 | 7 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/drawable/ic_view_carousel_black_32dp.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_leave_to_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_enter_from_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_enter_from_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_enter_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_leave_to_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/anim/dialog_leave_to_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /switchdatetime/src/main/java/com/kunzisoft/switchdatetime/date/OnYearSelectedListener.java: -------------------------------------------------------------------------------- 1 | package com.kunzisoft.switchdatetime.date; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Listener for select year 7 | * @author JJamet 8 | */ 9 | public interface OnYearSelectedListener { 10 | /** 11 | * Call when year is selected 12 | * @param view of event 13 | * @param year selected 14 | */ 15 | void onYearSelected(View view, int year); 16 | } 17 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-xhdpi/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 300dp 5 | 6 | 264dp 7 | 302dp 8 | 9 | 192dp 10 | 220dp 11 | 12 | 28dp 13 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-sw340dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 160dp 5 | 6 | 280dp 7 | 8 | 280dp 9 | 280dp 10 | 11 | 260dp 12 | 220dp 13 | 14 | 16dp 15 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-sw260dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 142dp 5 | 6 | 7 | 190dp 8 | 9 | 200dp 10 | 230dp 11 | 12 | 180dp 13 | 160dp 14 | 15 | 14dp 16 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 200dp 5 | 6 | 7 | 380dp 8 | 9 | 410dp 10 | 468dp 11 | 12 | 272dp 13 | 310dp 14 | 15 | 28dp 16 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-sw720dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 200dp 5 | 6 | 7 | 420dp 8 | 9 | 10 | 416dp 11 | 476dp 12 | 13 | 272dp 14 | 310dp 15 | 16 | 48dp 17 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/layout/year_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 15 | 16 | -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | android { 4 | compileSdkVersion 30 5 | buildToolsVersion "30.0.3" 6 | 7 | defaultConfig { 8 | applicationId "com.kunzisoft.switchdatetimepicker.sample" 9 | minSdkVersion 14 10 | targetSdkVersion 30 11 | versionCode 20 12 | versionName "2.1" 13 | } 14 | 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 19 | } 20 | } 21 | } 22 | 23 | dependencies { 24 | implementation 'androidx.appcompat:appcompat:1.3.1' 25 | implementation project(path: ":switchdatetime") 26 | } 27 | -------------------------------------------------------------------------------- /sample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 17 | 18 | -------------------------------------------------------------------------------- /sample/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/joker/Software/android-sdk-linux/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /switchdatetime/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/joker/Software/android-sdk-linux/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/layout/year_text_indicator.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 16 | -------------------------------------------------------------------------------- /switchdatetime/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | 3 | android { 4 | compileSdkVersion 30 5 | buildToolsVersion "30.0.3" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 30 10 | versionCode 20 11 | versionName "2.1" 12 | } 13 | 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation 'androidx.appcompat:appcompat:1.3.1' 24 | implementation 'androidx.recyclerview:recyclerview:1.2.1' 25 | implementation 'com.github.prolificinteractive:material-calendarview:1.6.1' 26 | implementation 'com.google.android.material:material:1.4.0' 27 | } 28 | -------------------------------------------------------------------------------- /switchdatetime/src/main/res/values-hdpi/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 160dp 5 | 6 | 14sp 7 | 8 | 24sp 9 | 10 | 16sp 11 | 22sp 12 | 13 | 14 | 240dp 15 | 16 | 230dp 17 | 264dp 18 | 19 | 140dp 20 | 160dp 21 | 22 | 16dp 23 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | android.enableJetifier=true 13 | android.useAndroidX=true 14 | org.gradle.jvmargs=-Xmx1536m 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | -------------------------------------------------------------------------------- /sample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sample/src/main/res/layout/activity_sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 |