diff --git a/build.gradle b/build.gradle index 74b2ab0..1ea4bd0 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 04e285f..0f682e8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Dec 28 10:00:20 PST 2015 +#Mon Mar 27 15:43:23 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip diff --git a/sample/build.gradle b/sample/build.gradle index d6f8949..c8d5d4a 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -24,7 +24,7 @@ dependencies { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - compile 'com.android.support:appcompat-v7:25.1.1' + compile 'com.android.support:appcompat-v7:25.3.1' testCompile 'junit:junit:4.12' compile project(path: ':switchdatetime') } diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index af2ede6..6242e00 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -6,7 +6,7 @@ - Switch DateTime Picker + Switch DateTime Picker Open DateTime Dialog diff --git a/switchdatetime/build.gradle b/switchdatetime/build.gradle index 6997d35..e8e80f3 100644 --- a/switchdatetime/build.gradle +++ b/switchdatetime/build.gradle @@ -25,8 +25,8 @@ dependencies { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - compile 'com.android.support:appcompat-v7:25.1.1' - compile 'com.android.support:recyclerview-v7:25.1.1' - compile 'com.prolificinteractive:material-calendarview:1.4.2' + compile 'com.android.support:appcompat-v7:25.3.1' + compile 'com.android.support:recyclerview-v7:25.3.1' + compile 'com.prolificinteractive:material-calendarview:1.4.3' testCompile 'junit:junit:4.12' } diff --git a/switchdatetime/src/main/AndroidManifest.xml b/switchdatetime/src/main/AndroidManifest.xml index 40503df..aaaa886 100644 --- a/switchdatetime/src/main/AndroidManifest.xml +++ b/switchdatetime/src/main/AndroidManifest.xml @@ -3,7 +3,6 @@ diff --git a/switchdatetime/src/main/res/layout-land/dialog_switch_datetime_picker.xml b/switchdatetime/src/main/res/layout-land/dialog_switch_datetime_picker.xml index 7952918..cf6e6b7 100644 --- a/switchdatetime/src/main/res/layout-land/dialog_switch_datetime_picker.xml +++ b/switchdatetime/src/main/res/layout-land/dialog_switch_datetime_picker.xml @@ -129,20 +129,19 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/switchdatetime/src/main/res/layout-ldrtl-v17/dialog_switch_datetime_picker.xml b/switchdatetime/src/main/res/layout-ldrtl-v17/dialog_switch_datetime_picker.xml new file mode 100644 index 0000000..c276bc8 --- /dev/null +++ b/switchdatetime/src/main/res/layout-ldrtl-v17/dialog_switch_datetime_picker.xml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/switchdatetime/src/main/res/layout-ldrtl-v17/time_header_label.xml b/switchdatetime/src/main/res/layout-ldrtl-v17/time_header_label.xml new file mode 100644 index 0000000..d9b44a7 --- /dev/null +++ b/switchdatetime/src/main/res/layout-ldrtl-v17/time_header_label.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/switchdatetime/src/main/res/layout/dialog_switch_datetime_picker.xml b/switchdatetime/src/main/res/layout/dialog_switch_datetime_picker.xml index 1249560..1d3dc92 100644 --- a/switchdatetime/src/main/res/layout/dialog_switch_datetime_picker.xml +++ b/switchdatetime/src/main/res/layout/dialog_switch_datetime_picker.xml @@ -119,20 +119,20 @@ style="@style/Theme.SwitchDateTime.Time" /> - + + + + diff --git a/switchdatetime/src/main/res/layout/year_text_indicator.xml b/switchdatetime/src/main/res/layout/year_text_indicator.xml index 0823fcf..510eda2 100644 --- a/switchdatetime/src/main/res/layout/year_text_indicator.xml +++ b/switchdatetime/src/main/res/layout/year_text_indicator.xml @@ -9,7 +9,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="16sp" - android:padding="@dimen/year_padding" + android:padding="@dimen/year_item_padding" style="@style/Theme.SwitchDateTime.Year" android:gravity="center" android:layout_gravity="center"/> diff --git a/switchdatetime/src/main/res/values-hdpi/dimens.xml b/switchdatetime/src/main/res/values-hdpi/dimens.xml index 8baa0d4..46d2352 100644 --- a/switchdatetime/src/main/res/values-hdpi/dimens.xml +++ b/switchdatetime/src/main/res/values-hdpi/dimens.xml @@ -3,17 +3,21 @@ 160dp + 14sp + + 24sp + + 16sp + 22sp + 240dp + + 230dp + 264dp + + 140dp + 160dp - 12dp - 32dp - 32dp - 8dp - 26dp - 12dp - 12dp - 28dp - - 16dp + 16dp \ No newline at end of file diff --git a/switchdatetime/src/main/res/values-ldpi/dimens.xml b/switchdatetime/src/main/res/values-ldpi/dimens.xml index f1c642d..4dd9a79 100644 --- a/switchdatetime/src/main/res/values-ldpi/dimens.xml +++ b/switchdatetime/src/main/res/values-ldpi/dimens.xml @@ -1,19 +1,37 @@ - 160dp + 146dp + + 14sp + + 14sp + 14sp + 14sp - 240dp + 160dp + - 12dp - 32dp - 32dp - 8dp - 22dp - 6dp - 4dp - 22dp + + + 168dp + 194dp + + + 140dp + 162dp + - 6dp + 16dp \ No newline at end of file diff --git a/switchdatetime/src/main/res/values-small/dimens.xml b/switchdatetime/src/main/res/values-small/dimens.xml deleted file mode 100644 index ba97edb..0000000 --- a/switchdatetime/src/main/res/values-small/dimens.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - 150dp - - 8sp - - - 160dp - - 0dp - 58dp - 58dp - 0dp - 38dp - 8dp - 8dp - 30dp - - 16dp - \ No newline at end of file diff --git a/switchdatetime/src/main/res/values-sw600dp/dimens.xml b/switchdatetime/src/main/res/values-sw600dp/dimens.xml index 5ea89bd..09c9853 100644 --- a/switchdatetime/src/main/res/values-sw600dp/dimens.xml +++ b/switchdatetime/src/main/res/values-sw600dp/dimens.xml @@ -5,15 +5,12 @@ 380dp + + 410dp + 468dp + + 272dp + 310dp - 54dp - 32dp - 32dp - 54dp - 38dp - 12dp - 12dp - 38dp - - 28dp + 28dp \ No newline at end of file diff --git a/switchdatetime/src/main/res/values-sw720dp/dimens.xml b/switchdatetime/src/main/res/values-sw720dp/dimens.xml index a50b50f..99ecf59 100644 --- a/switchdatetime/src/main/res/values-sw720dp/dimens.xml +++ b/switchdatetime/src/main/res/values-sw720dp/dimens.xml @@ -6,14 +6,12 @@ 420dp - 220dp - 22dp - 22dp - 220dp - 120dp - 0dp - 0dp - 120dp + + 416dp + 476dp + + 272dp + 310dp - 48dp + 48dp \ No newline at end of file diff --git a/switchdatetime/src/main/res/values-v21/styles.xml b/switchdatetime/src/main/res/values-v21/styles.xml index 52b2e77..ca970da 100644 --- a/switchdatetime/src/main/res/values-v21/styles.xml +++ b/switchdatetime/src/main/res/values-v21/styles.xml @@ -15,7 +15,7 @@ @@ -38,7 +38,7 @@ @@ -50,7 +50,7 @@ @@ -62,7 +62,7 @@ diff --git a/switchdatetime/src/main/res/values-xhdpi/dimens.xml b/switchdatetime/src/main/res/values-xhdpi/dimens.xml index 92ff557..500467e 100644 --- a/switchdatetime/src/main/res/values-xhdpi/dimens.xml +++ b/switchdatetime/src/main/res/values-xhdpi/dimens.xml @@ -2,15 +2,12 @@ 300dp + + 264dp + 302dp + + 192dp + 220dp - 38dp - 16dp - 16dp - 32dp - 32dp - 22dp - 22dp - 24dp - - 28dp + 28dp \ No newline at end of file diff --git a/switchdatetime/src/main/res/values/dimens.xml b/switchdatetime/src/main/res/values/dimens.xml index 0089996..3138efb 100644 --- a/switchdatetime/src/main/res/values/dimens.xml +++ b/switchdatetime/src/main/res/values/dimens.xml @@ -3,7 +3,10 @@ 200dp + 18sp + 24sp + 12sp 32dip 128dip 170dp @@ -12,21 +15,23 @@ -30dp 4dip + 16sp + 26sp + 64dip 320dp - 54dp - 18dp - 18dp - 54dp - 62dp - 0dp - 0dp - 62dp + + + 340dp + 390dp + + 190dp + 220dp - 24dp + 24dp 270dip diff --git a/switchdatetime/src/main/res/values/strings.xml b/switchdatetime/src/main/res/values/strings.xml index 8b6032e..99965a0 100644 --- a/switchdatetime/src/main/res/values/strings.xml +++ b/switchdatetime/src/main/res/values/strings.xml @@ -1,6 +1,4 @@ - Switch DateTime Picker - yyyy-MM-dd \'at\' HH:mm @@ -13,7 +11,6 @@ Image datetime - Hours circular slider Select hours Minutes circular slider diff --git a/switchdatetime/src/main/res/values/styles.xml b/switchdatetime/src/main/res/values/styles.xml index 18941fc..0483596 100644 --- a/switchdatetime/src/main/res/values/styles.xml +++ b/switchdatetime/src/main/res/values/styles.xml @@ -15,7 +15,7 @@ @@ -44,7 +44,7 @@ @@ -56,7 +56,7 @@ @@ -68,7 +68,7 @@