├── settings.gradle ├── .gitignore ├── demo ├── screens │ ├── dateTimePicker.png │ └── dateTimePicker.xcf ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values-v21 │ │ │ └── styles.xml │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ └── main.xml │ │ └── AndroidManifest.xml └── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── library ├── proguard.flags ├── res │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── values-v16 │ │ ├── strings.xml │ │ └── styles.xml │ ├── color │ │ ├── done_text_color.xml │ │ ├── done_text_color_dark.xml │ │ ├── date_picker_year_selector.xml │ │ └── date_picker_selector.xml │ ├── drawable │ │ ├── done_background_color_dark.xml │ │ └── done_background_color.xml │ ├── drawable-land │ │ ├── done_background_color_dark.xml │ │ └── done_background_color.xml │ ├── layout │ │ ├── date_picker_view_animator.xml │ │ ├── year_label_text_view.xml │ │ ├── date_picker_header_view.xml │ │ ├── date_picker_done_button.xml │ │ └── date_picker_dialog.xml │ ├── drawable-v19 │ │ └── done_background_color.xml │ ├── drawable-land-v19 │ │ └── done_background_color.xml │ ├── values-w270dp-h560dp │ │ └── dimens.xml │ ├── values-land │ │ └── dimens.xml │ ├── values-sw600dp-land │ │ └── dimens.xml │ ├── values │ │ └── styles.xml │ ├── layout-sw600dp │ │ └── date_picker_dialog.xml │ ├── layout-w270dp-h560dp │ │ └── date_picker_dialog.xml │ ├── values-zh-rCN │ │ └── strings.xml │ ├── values-zh-rHK │ │ └── strings.xml │ ├── values-zh-rTW │ │ └── strings.xml │ ├── values-ja │ │ └── strings.xml │ ├── values-ko │ │ └── strings.xml │ ├── values-am │ │ └── strings.xml │ ├── values-iw │ │ └── strings.xml │ ├── values-lo │ │ └── strings.xml │ ├── values-af │ │ └── strings.xml │ ├── values-pa │ │ └── strings.xml │ ├── values-az │ │ └── strings.xml │ ├── values-th │ │ └── strings.xml │ ├── values-da │ │ └── strings.xml │ ├── values-in │ │ └── strings.xml │ ├── values-mr │ │ └── strings.xml │ ├── values-vi │ │ └── strings.xml │ ├── values-en-rAU │ │ └── strings.xml │ ├── values-en-rCA │ │ └── strings.xml │ ├── values-en-rGB │ │ └── strings.xml │ ├── values-en-rIN │ │ └── strings.xml │ ├── values-is │ │ └── strings.xml │ ├── values-si │ │ └── strings.xml │ ├── values-km │ │ └── strings.xml │ ├── values-mn │ │ └── strings.xml │ ├── values-ms │ │ └── strings.xml │ ├── values-pl │ │ └── strings.xml │ ├── values-fa │ │ └── strings.xml │ ├── values-ka │ │ └── strings.xml │ ├── values-mk │ │ └── strings.xml │ ├── values-sl │ │ └── strings.xml │ ├── values-sv │ │ └── strings.xml │ ├── values-tr │ │ └── strings.xml │ ├── values-ar │ │ └── strings.xml │ ├── values-cs │ │ └── strings.xml │ ├── values-gu │ │ └── strings.xml │ ├── values-ky │ │ └── strings.xml │ ├── values-ur │ │ └── strings.xml │ ├── values-hi │ │ └── strings.xml │ ├── values-kk │ │ └── strings.xml │ ├── values-my │ │ └── strings.xml │ ├── values-nb │ │ └── strings.xml │ ├── values-ro │ │ └── strings.xml │ ├── values-sk │ │ └── strings.xml │ ├── values-uk │ │ └── strings.xml │ ├── values-lv │ │ └── strings.xml │ ├── values-ru │ │ └── strings.xml │ ├── values-uz │ │ └── strings.xml │ ├── values-el │ │ └── strings.xml │ ├── values-et │ │ └── strings.xml │ ├── values-hr │ │ └── strings.xml │ ├── values-ne │ │ └── strings.xml │ ├── values-bg │ │ └── strings.xml │ ├── values-bs │ │ └── strings.xml │ ├── values-hy │ │ └── strings.xml │ ├── values-sw │ │ └── strings.xml │ ├── values-nl │ │ └── strings.xml │ ├── values-sr │ │ └── strings.xml │ ├── values-b+sr+Latn │ │ └── strings.xml │ ├── values-be │ │ └── strings.xml │ ├── values-or │ │ └── strings.xml │ ├── values-sq │ │ └── strings.xml │ ├── values-ca │ │ └── strings.xml │ ├── values-hu │ │ └── strings.xml │ ├── values-zu │ │ └── strings.xml │ ├── values-kn │ │ └── strings.xml │ ├── values-te │ │ └── strings.xml │ ├── values-es │ │ └── strings.xml │ ├── values-fi │ │ └── strings.xml │ ├── values-gl │ │ └── strings.xml │ ├── values-tl │ │ └── strings.xml │ ├── values-de │ │ └── strings.xml │ ├── values-es-rUS │ │ └── strings.xml │ ├── values-lt │ │ └── strings.xml │ ├── values-pt-rPT │ │ └── strings.xml │ ├── values-pt │ │ └── strings.xml │ ├── values-bn │ │ └── strings.xml │ ├── layout-land │ │ └── date_picker_dialog.xml │ ├── values-eu │ │ └── strings.xml │ ├── layout-sw600dp-land │ │ └── date_picker_dialog.xml │ ├── values-fr │ │ └── strings.xml │ ├── values-it │ │ └── strings.xml │ ├── values-fr-rCA │ │ └── strings.xml │ └── values-ta │ │ └── strings.xml ├── AndroidManifest.xml └── src │ └── com │ └── android │ └── datetimepicker │ ├── date │ ├── SimpleMonthAdapter.java │ ├── SimpleDayPickerView.java │ ├── DatePickerController.java │ └── SimpleMonthView.java │ ├── AccessibleTextView.java │ └── AccessibleLinearLayout.java ├── Android.bp └── README.md /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':library' 2 | include ':demo' -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .gradle 3 | .gnupg 4 | *.iml 5 | build 6 | local.properties 7 | gradle.properties -------------------------------------------------------------------------------- /demo/screens/dateTimePicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/screens/dateTimePicker.png -------------------------------------------------------------------------------- /demo/screens/dateTimePicker.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/screens/dateTimePicker.xcf -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /demo/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiTuX/datetimepicker/HEAD/demo/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /library/proguard.flags: -------------------------------------------------------------------------------- 1 | -keepclassmembers class com.android.datetimepicker.time.RadialSelectorView { 2 | *** setAnimationRadiusMultiplier(...); 3 | } 4 | 5 | -keepclassmembers class com.android.datetimepicker.time.RadialTextsView { 6 | *** setAnimationRadiusMultiplier(...); 7 | } 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Dec 10 19:10:09 CET 2014 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-4.7-bin.zip 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 8dp 6 | 18sp 7 | 8 | -------------------------------------------------------------------------------- /library/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /demo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DateTimePicker 5 | Hello world! 6 | Settings 7 | DatePicker 8 | TimePicker 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /library/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | -------------------------------------------------------------------------------- /demo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion '28.0.2' 6 | 7 | defaultConfig { 8 | applicationId "citux.ch.datetimepicker" 9 | minSdkVersion 14 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | } 15 | 16 | dependencies { 17 | implementation fileTree(dir: 'libs', include: ['*.jar']) 18 | implementation project(':library') 19 | } 20 | -------------------------------------------------------------------------------- /demo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /demo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | 14 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/values-v16/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | sans-serif-light 20 | 21 | -------------------------------------------------------------------------------- /library/res/color/done_text_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /library/res/color/done_text_color_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /library/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/color/date_picker_year_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 21 | 22 | -------------------------------------------------------------------------------- /library/res/drawable/done_background_color_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/drawable-land/done_background_color_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/drawable/done_background_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/drawable-land/done_background_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /library/res/layout/date_picker_view_animator.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | -------------------------------------------------------------------------------- /library/res/drawable-v19/done_background_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/res/color/date_picker_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | -------------------------------------------------------------------------------- /library/res/drawable-land-v19/done_background_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /library/res/values-w270dp-h560dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 23 | 24 | 230dp 25 | 30dp 26 | 100dp 27 | 30dp 28 | -------------------------------------------------------------------------------- /Android.bp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | android_library { 16 | name: "android-opt-datetimepicker", 17 | 18 | sdk_version: "current", 19 | 20 | srcs: [ 21 | "src/**/*.java", 22 | "src/**/*.logtags", 23 | ], 24 | 25 | resource_dirs: ["res"], 26 | 27 | static_libs: [ 28 | "android-support-annotations", 29 | "android-support-compat", 30 | "android-support-core-utils", 31 | "android-support-core-ui", 32 | ], 33 | 34 | optimize: { 35 | proguard_flags_files: ["proguard.flags"], 36 | }, 37 | } 38 | -------------------------------------------------------------------------------- /library/res/values-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 23 | 200dip 24 | 250dip 25 | 26 | 30dp 27 | 100dp 28 | 30dp 29 | -------------------------------------------------------------------------------- /library/res/layout/year_label_text_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 25 | -------------------------------------------------------------------------------- /library/res/values-v16/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 22 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /library/res/layout/date_picker_header_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 27 | -------------------------------------------------------------------------------- /library/src/com/android/datetimepicker/date/SimpleMonthAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.android.datetimepicker.date; 18 | 19 | import android.content.Context; 20 | 21 | /** 22 | * An adapter for a list of {@link SimpleMonthView} items. 23 | */ 24 | class SimpleMonthAdapter extends MonthAdapter { 25 | 26 | public SimpleMonthAdapter(Context context, DatePickerController controller) { 27 | super(context, controller); 28 | } 29 | 30 | @Override 31 | public MonthView createMonthView(Context context) { 32 | final MonthView monthView = new SimpleMonthView(context); 33 | monthView.setDatePickerController(mController); 34 | return monthView; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /library/res/values-sw600dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 45dp 24 | 16sp 25 | 64sp 26 | 21sp 27 | 7dip 28 | 5dip 29 | 96dip 30 | 48dip 31 | 315dip 32 | 33 | -------------------------------------------------------------------------------- /library/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 23 | 24 | 30 | 31 |