├── sample
├── .gitignore
├── src
│ └── main
│ │ ├── res
│ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── values
│ │ │ ├── dimens.xml
│ │ │ ├── styles.xml
│ │ │ └── strings.xml
│ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ └── layout
│ │ │ └── activity_main.xml
│ │ └── AndroidManifest.xml
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── library
├── gradle.properties
├── src
│ └── main
│ │ ├── assets
│ │ └── fonts
│ │ │ └── Roboto-Medium.ttf
│ │ ├── res
│ │ ├── values-h330dp
│ │ │ └── dimens.xml
│ │ ├── values-w560dp-land
│ │ │ └── dimens.xml
│ │ ├── drawable-v21
│ │ │ ├── mdtp_material_button_background.xml
│ │ │ └── mdtp_material_button_selected.xml
│ │ ├── drawable
│ │ │ ├── mdtp_material_button_background.xml
│ │ │ ├── mdtp_material_button_selected.xml
│ │ │ ├── mdtp_done_background_color_dark.xml
│ │ │ └── mdtp_done_background_color.xml
│ │ ├── values-v16
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ ├── color
│ │ │ ├── mdtp_done_text_color.xml
│ │ │ ├── mdtp_done_text_color_dark.xml
│ │ │ ├── mdtp_date_picker_year_selector.xml
│ │ │ └── mdtp_date_picker_selector.xml
│ │ ├── layout
│ │ │ ├── hdp_mdtp_date_time_picker_dialog.xml
│ │ │ ├── hdp_mdtp_date_picker_view_animator.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_view_animator.xml
│ │ │ ├── hdp_mdtp_year_label_text_view.xml
│ │ │ ├── hdp_mdtp_hijri_year_label_text_view.xml
│ │ │ ├── hdp_mdtp_date_picker_header_view.xml
│ │ │ ├── hdp_mdtp_time_title_view.xml
│ │ │ ├── hdp_mdtp_time_title_view_v2.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_header_view.xml
│ │ │ ├── hdp_mdtp_date_picker_header_view_v2.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_header_view_v2.xml
│ │ │ ├── hdp_mdtp_date_picker_dialog.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_dialog.xml
│ │ │ ├── hdp_mdtp_date_picker_dialog_v2.xml
│ │ │ └── hdp_mdtp_hijri_date_picker_dialog_v2.xml
│ │ ├── drawable-land
│ │ │ ├── mdtp_done_background_color_dark.xml
│ │ │ └── mdtp_done_background_color.xml
│ │ ├── drawable-land-v19
│ │ │ └── mdtp_done_background_color.xml
│ │ ├── drawable-v19
│ │ │ └── mdtp_done_background_color.xml
│ │ ├── values-w270dp-h560dp
│ │ │ └── dimens.xml
│ │ ├── layout-land
│ │ │ ├── hdp_mdtp_time_title_view_v2.xml
│ │ │ ├── hdp_mdtp_date_picker_header_view_v2.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_header_view_v2.xml
│ │ │ ├── hdp_mdtp_date_picker_dialog_v2.xml
│ │ │ ├── hdp_mdtp_hijri_date_picker_dialog_v2.xml
│ │ │ ├── hdp_mdtp_date_picker_dialog.xml
│ │ │ └── hdp_mdtp_hijri_date_picker_dialog.xml
│ │ ├── values-land
│ │ │ └── dimens.xml
│ │ ├── values-sw600dp-land
│ │ │ └── dimens.xml
│ │ ├── layout-w270dp-h560dp
│ │ │ ├── hdp_mdtp_date_picker_dialog.xml
│ │ │ └── hdp_mdtp_hijri_date_picker_dialog.xml
│ │ ├── layout-sw600dp
│ │ │ ├── hdp_mdtp_date_picker_dialog.xml
│ │ │ └── hdp_mdtp_hijri_date_picker_dialog.xml
│ │ ├── values
│ │ │ └── styles.xml
│ │ ├── layout-sw600dp-land
│ │ │ ├── hdp_mdtp_date_picker_dialog.xml
│ │ │ └── hdp_mdtp_hijri_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-af
│ │ │ └── strings.xml
│ │ ├── values-lo-rLA
│ │ │ └── strings.xml
│ │ ├── values-nl
│ │ │ └── strings.xml
│ │ ├── values-th
│ │ │ └── strings.xml
│ │ ├── values-da
│ │ │ └── strings.xml
│ │ ├── values-in
│ │ │ └── strings.xml
│ │ ├── values-vi
│ │ │ └── strings.xml
│ │ ├── values-en-rGB
│ │ │ └── strings.xml
│ │ ├── values-en-rIN
│ │ │ └── strings.xml
│ │ ├── values-hi
│ │ │ └── strings.xml
│ │ ├── values-mr-rIN
│ │ │ └── strings.xml
│ │ ├── values-si-rLK
│ │ │ └── strings.xml
│ │ ├── values-is-rIS
│ │ │ └── strings.xml
│ │ ├── values-km-rKH
│ │ │ └── strings.xml
│ │ ├── values-mn-rMN
│ │ │ └── strings.xml
│ │ ├── values-ms-rMY
│ │ │ └── strings.xml
│ │ ├── values-pl
│ │ │ └── strings.xml
│ │ ├── values-sv
│ │ │ └── strings.xml
│ │ ├── values-tr
│ │ │ └── strings.xml
│ │ ├── values-ar
│ │ │ └── strings.xml
│ │ ├── values-cs
│ │ │ └── strings.xml
│ │ ├── values-fa
│ │ │ └── strings.xml
│ │ ├── values-ka-rGE
│ │ │ └── strings.xml
│ │ ├── values-sl
│ │ │ └── strings.xml
│ │ ├── values-mk-rMK
│ │ │ └── strings.xml
│ │ ├── values-ro
│ │ │ └── strings.xml
│ │ ├── values-uk
│ │ │ └── strings.xml
│ │ ├── values-ur-rPK
│ │ │ └── strings.xml
│ │ ├── values-kk-rKZ
│ │ │ └── strings.xml
│ │ ├── values-ky-rKG
│ │ │ └── strings.xml
│ │ ├── values-nb
│ │ │ └── strings.xml
│ │ ├── values-ru
│ │ │ └── strings.xml
│ │ ├── values-sk
│ │ │ └── strings.xml
│ │ ├── values-uz-rUZ
│ │ │ └── strings.xml
│ │ ├── values-el
│ │ │ └── strings.xml
│ │ ├── values-hr
│ │ │ └── strings.xml
│ │ ├── values-my-rMM
│ │ │ └── strings.xml
│ │ ├── values-lv
│ │ │ └── strings.xml
│ │ ├── values-ne-rNP
│ │ │ └── strings.xml
│ │ ├── values-sw
│ │ │ └── strings.xml
│ │ ├── values-hy-rAM
│ │ │ └── strings.xml
│ │ ├── values-sr
│ │ │ └── strings.xml
│ │ ├── values-bg
│ │ │ └── strings.xml
│ │ ├── values-hu
│ │ │ └── strings.xml
│ │ ├── values-zu
│ │ │ └── strings.xml
│ │ └── values-ca
│ │ │ └── strings.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── net
│ │ └── alhazmy13
│ │ └── hijridatepicker
│ │ ├── date
│ │ ├── hijri
│ │ │ ├── SimpleMonthAdapter.java
│ │ │ ├── SimpleDayPickerView.java
│ │ │ ├── DatePickerController.java
│ │ │ └── AccessibleDateAnimator.java
│ │ └── gregorian
│ │ │ ├── SimpleMonthAdapter.java
│ │ │ ├── SimpleDayPickerView.java
│ │ │ ├── DatePickerController.java
│ │ │ └── AccessibleDateAnimator.java
│ │ ├── TypefaceHelper.java
│ │ ├── AccessibleTextView.java
│ │ ├── AccessibleLinearLayout.java
│ │ └── VerticalTextView.java
└── build.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── HijriDatePicker.iml
└── gradle.properties
/sample/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':library', ':sample'
2 |
--------------------------------------------------------------------------------
/library/gradle.properties:
--------------------------------------------------------------------------------
1 | POM_NAME=MaterialDateTimePicker
2 | POM_ARTIFACT_ID=materialdatetimepicker
3 | POM_PACKAGING=aar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/library/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/library/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/sample/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/sample/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/sample/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/sample/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alhazmy13/HijriDatePicker/HEAD/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/library/src/main/res/values-h330dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 252dp
4 | 300dip
5 |
6 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri May 01 08:02:21 AST 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-5.6.4-all.zip
7 |
--------------------------------------------------------------------------------
/library/src/main/res/values-w560dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 270dp
4 | 270dip
5 | 270dip
6 |
7 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/mdtp_material_button_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/sample/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/mdtp_material_button_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/mdtp_material_button_selected.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/mdtp_material_button_selected.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the 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 |
24 | # Proguard folder generated by Eclipse
25 | proguard/
26 |
27 | # Log Files
28 | *.log
29 |
30 | # Android Studio Navigation editor temp files
31 | .navigation/
32 |
33 | # Android Studio captures folder
34 | captures/
35 |
36 | # Intellij
37 | *.iml.idea
38 | .DS_Store
39 | .idea
40 |
--------------------------------------------------------------------------------
/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/wdullaer/Downloads/android-sdk/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 |
--------------------------------------------------------------------------------
/sample/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 29
5 | buildToolsVersion "29.0.3"
6 |
7 | defaultConfig {
8 | minSdkVersion 19
9 | targetSdkVersion 29
10 | versionCode 1
11 | versionName "1.0.2"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | lintOptions {
20 | abortOnError false
21 | }
22 |
23 |
24 | }
25 |
26 | dependencies {
27 | implementation project(':library')
28 | implementation fileTree(dir: 'libs', include: ['*.jar'])
29 | implementation 'com.google.android.material:material:1.1.0'
30 | implementation "androidx.appcompat:appcompat:1.1.0"
31 | }
32 |
--------------------------------------------------------------------------------
/sample/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/HijriDatePicker.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/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 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 | android.enableJetifier=true
20 | android.useAndroidX=true
--------------------------------------------------------------------------------
/library/src/main/res/values-v16/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | sans-serif-light
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/color/mdtp_done_text_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/color/mdtp_done_text_color_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_time_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/color/mdtp_date_picker_year_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/mdtp_done_background_color_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-land/mdtp_done_background_color_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/color/mdtp_date_picker_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-land/mdtp_done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-land-v19/mdtp_done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/mdtp_done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v19/mdtp_done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_picker_view_animator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_date_picker_view_animator.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
--------------------------------------------------------------------------------
/library/src/main/res/values-w270dp-h560dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
23 |
24 | 230dp
25 | 190dp
26 | 30dp
27 | 100dp
28 | 30dp
29 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_year_label_text_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_year_label_text_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/values-v16/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
22 |
23 |
26 |
27 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_picker_header_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
27 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_time_title_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_time_title_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_date_picker_header_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
27 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/hijri/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 net.alhazmy13.hijridatepicker.date.hijri;
18 |
19 | import android.content.Context;
20 |
21 | /**
22 | * An adapter for a list of {@link SimpleMonthView} items.
23 | */
24 | public 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, null, mController);
33 | return monthView;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/gregorian/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 net.alhazmy13.hijridatepicker.date.gregorian;
18 |
19 | import android.content.Context;
20 |
21 | /**
22 | * An adapter for a list of {@link SimpleMonthView} items.
23 | */
24 | public 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, null, mController);
33 | return monthView;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_picker_header_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
17 |
18 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_date_picker_header_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'com.novoda.bintray-release'
3 | //./gradlew clean build bintrayUpload
4 |
5 |
6 | publish {
7 | userOrg = 'alhazmy13'
8 | groupId = 'net.alhazmy13.hijridatepicker'
9 | artifactId = 'library'
10 | uploadName = 'HijriDatePicker-v2'
11 | publishVersion = '3.0.3'
12 | desc = 'Hijri Date Picker'
13 | dryRun = false
14 | website = 'https://github.com/alhzmy13/HijriDatePicker'
15 | }
16 |
17 |
18 | android {
19 | compileSdkVersion 29
20 | buildToolsVersion "29.0.3"
21 |
22 | defaultConfig {
23 | minSdkVersion 19
24 | targetSdkVersion 29
25 | versionCode 1
26 | versionName "1.0.2"
27 | }
28 | buildTypes {
29 | release {
30 | minifyEnabled false
31 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32 | }
33 | }
34 | lintOptions {
35 | abortOnError false
36 | }
37 |
38 |
39 | }
40 |
41 | dependencies {
42 | implementation fileTree(dir: 'libs', include: ['*.jar'])
43 | implementation 'com.google.android.material:material:1.1.0'
44 | implementation "androidx.appcompat:appcompat:1.1.0"
45 | implementation "androidx.constraintlayout:constraintlayout:1.1.3"
46 |
47 | api group: 'com.github.msarhan', name: 'ummalqura-calendar', version:'2.0.2'
48 |
49 | }
50 |
51 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_time_title_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_date_picker_header_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_hijri_date_picker_header_view_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/hijri/SimpleDayPickerView.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 net.alhazmy13.hijridatepicker.date.hijri;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 |
22 | /**
23 | * A DayPickerView customized for {@link SimpleMonthAdapter}
24 | */
25 | public class SimpleDayPickerView extends DayPickerView {
26 |
27 | public SimpleDayPickerView(Context context, AttributeSet attrs) {
28 | super(context, attrs);
29 | }
30 |
31 | public SimpleDayPickerView(Context context, DatePickerController controller) {
32 | super(context, controller);
33 | }
34 |
35 | @Override
36 | public MonthAdapter createMonthAdapter(Context context, DatePickerController controller) {
37 | return new SimpleMonthAdapter(context, controller);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/res/values-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | 200dip
22 | 240dip
23 |
24 | 30dp
25 | 100dp
26 | 30dp
27 |
28 | 220dp
29 | 170dp
30 | 308dp
31 | 220dp
32 |
33 | 220dip
34 | 270dip
35 |
36 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/gregorian/SimpleDayPickerView.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 net.alhazmy13.hijridatepicker.date.gregorian;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 |
22 | /**
23 | * A DayPickerView customized for {@link SimpleMonthAdapter}
24 | */
25 | public class SimpleDayPickerView extends DayPickerView {
26 |
27 | public SimpleDayPickerView(Context context, AttributeSet attrs) {
28 | super(context, attrs);
29 | }
30 |
31 | public SimpleDayPickerView(Context context, DatePickerController controller) {
32 | super(context, controller);
33 | }
34 |
35 | @Override
36 | public MonthAdapter createMonthAdapter(Context context, DatePickerController controller) {
37 | return new SimpleMonthAdapter(context, controller);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sw600dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 | 45dp
23 | 14dp
24 | 220dp
25 | 456dp
26 | 16dp
27 | 64dp
28 | 32dp
29 | 16dp
30 | 6dip
31 | 5dip
32 | 96dip
33 | 48dip
34 | 400dip
35 |
36 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-w270dp-h560dp/hdp_mdtp_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/hdp_mdtp_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-w270dp-h560dp/hdp_mdtp_hijri_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_date_picker_dialog_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/hdp_mdtp_hijri_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hdp_mdtp_hijri_date_picker_dialog_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/TypefaceHelper.java:
--------------------------------------------------------------------------------
1 | package net.alhazmy13.hijridatepicker;
2 |
3 |
4 | import android.content.Context;
5 | import android.graphics.Typeface;
6 |
7 | import androidx.collection.SimpleArrayMap;
8 |
9 | /*
10 | Each call to Typeface.createFromAsset will load a new instance of the typeface into memory,
11 | and this memory is not consistently get garbage collected
12 | http://code.google.com/p/android/issues/detail?id=9904
13 | (It states released but even on Lollipop you can see the typefaces accumulate even after
14 | multiple GC passes)
15 | You can detect this by running:
16 | adb shell dumpsys meminfo com.your.packagenage
17 | You will see output like:
18 | Asset Allocations
19 | zip:/data/app/com.your.packagenage-1.apk:/assets/Roboto-Medium.ttf: 125K
20 | zip:/data/app/com.your.packagenage-1.apk:/assets/Roboto-Medium.ttf: 125K
21 | zip:/data/app/com.your.packagenage-1.apk:/assets/Roboto-Medium.ttf: 125K
22 | zip:/data/app/com.your.packagenage-1.apk:/assets/Roboto-Regular.ttf: 123K
23 | zip:/data/app/com.your.packagenage-1.apk:/assets/Roboto-Medium.ttf: 125K
24 | */
25 | public class TypefaceHelper {
26 |
27 | private static final SimpleArrayMap cache = new SimpleArrayMap<>();
28 |
29 | public static Typeface get(Context c, String name) {
30 | synchronized (cache) {
31 | if (!cache.containsKey(name)) {
32 | Typeface t = Typeface.createFromAsset(
33 | c.getAssets(), String.format("fonts/%s.ttf", name));
34 | cache.put(name, t);
35 | return t;
36 | }
37 | return cache.get(name);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_date_picker_dialog_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | false
19 |
20 |
24 |
25 |
29 |
30 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_hijri_date_picker_dialog_v2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/AccessibleTextView.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 net.alhazmy13.hijridatepicker;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.accessibility.AccessibilityEvent;
22 | import android.view.accessibility.AccessibilityNodeInfo;
23 |
24 | import com.google.android.material.button.MaterialButton;
25 |
26 | /**
27 | * Fake Button class, used so TextViews can announce themselves as Buttons, for accessibility.
28 | */
29 | public class AccessibleTextView extends androidx.appcompat.widget.AppCompatTextView {
30 |
31 | public AccessibleTextView(Context context, AttributeSet attrs) {
32 | super(context, attrs);
33 | }
34 |
35 | @Override
36 | public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
37 | super.onInitializeAccessibilityEvent(event);
38 | event.setClassName(MaterialButton.class.getName());
39 | }
40 |
41 | @Override
42 | public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
43 | super.onInitializeAccessibilityNodeInfo(info);
44 | info.setClassName(MaterialButton.class.getName());
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/AccessibleLinearLayout.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 net.alhazmy13.hijridatepicker;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.accessibility.AccessibilityEvent;
22 | import android.view.accessibility.AccessibilityNodeInfo;
23 | import android.widget.LinearLayout;
24 |
25 | import com.google.android.material.button.MaterialButton;
26 |
27 | /**
28 | * Fake Button class, used so TextViews can announce themselves as Buttons, for accessibility.
29 | */
30 | public class AccessibleLinearLayout extends LinearLayout {
31 |
32 | public AccessibleLinearLayout(Context context, AttributeSet attrs) {
33 | super(context, attrs);
34 | }
35 |
36 | @Override
37 | public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
38 | super.onInitializeAccessibilityEvent(event);
39 | event.setClassName(MaterialButton.class.getName());
40 | }
41 |
42 | @Override
43 | public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
44 | super.onInitializeAccessibilityNodeInfo(info);
45 | info.setClassName(MaterialButton.class.getName());
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/hdp_mdtp_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hdp_mdtp_hijri_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/hdp_mdtp_hijri_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
22 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/gregorian/DatePickerController.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 net.alhazmy13.hijridatepicker.date.gregorian;
18 |
19 | import java.util.Calendar;
20 | import java.util.Locale;
21 | import java.util.TimeZone;
22 |
23 | /**
24 | * Controller class to communicate among the various components of the date picker dialog.
25 | */
26 | public interface DatePickerController {
27 |
28 | void onYearSelected(int year);
29 |
30 | void onDayOfMonthSelected(int year, int month, int day);
31 |
32 | void registerOnDateChangedListener(GregorianDatePickerDialog.OnDateChangedListener listener);
33 |
34 | void unregisterOnDateChangedListener(GregorianDatePickerDialog.OnDateChangedListener listener);
35 |
36 | MonthAdapter.CalendarDay getSelectedDay();
37 |
38 | boolean isThemeDark();
39 |
40 | int getAccentColor();
41 |
42 | boolean isHighlighted(int year, int month, int day);
43 |
44 | int getFirstDayOfWeek();
45 |
46 | int getMinYear();
47 |
48 | int getMaxYear();
49 |
50 | Calendar getStartDate();
51 |
52 | Calendar getEndDate();
53 |
54 | boolean isOutOfRange(int year, int month, int day);
55 |
56 | void tryVibrate();
57 |
58 | TimeZone getTimeZone();
59 |
60 | Locale getLocale();
61 | }
62 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/hijri/DatePickerController.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 net.alhazmy13.hijridatepicker.date.hijri;
18 |
19 | import com.github.msarhan.ummalqura.calendar.UmmalquraCalendar;
20 |
21 | import java.util.Locale;
22 | import java.util.TimeZone;
23 |
24 | /**
25 | * Controller class to communicate among the various components of the date picker dialog.
26 | */
27 | public interface DatePickerController {
28 |
29 | void onYearSelected(int year);
30 |
31 | void onDayOfMonthSelected(int year, int month, int day);
32 |
33 | void registerOnDateChangedListener(HijriDatePickerDialog.OnDateChangedListener listener);
34 |
35 | void unregisterOnDateChangedListener(HijriDatePickerDialog.OnDateChangedListener listener);
36 |
37 | MonthAdapter.CalendarDay getSelectedDay();
38 |
39 | boolean isThemeDark();
40 |
41 | int getAccentColor();
42 |
43 | boolean isHighlighted(int year, int month, int day);
44 |
45 | int getFirstDayOfWeek();
46 |
47 | int getMinYear();
48 |
49 | int getMaxYear();
50 |
51 | UmmalquraCalendar getStartDate();
52 |
53 | UmmalquraCalendar getEndDate();
54 |
55 | boolean isOutOfRange(int year, int month, int day);
56 |
57 | void tryVibrate();
58 |
59 | TimeZone getTimeZone();
60 |
61 | Locale getLocale();
62 | }
63 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/VerticalTextView.java:
--------------------------------------------------------------------------------
1 | package net.alhazmy13.hijridatepicker;
2 |
3 | import android.content.Context;
4 | import android.graphics.Canvas;
5 | import android.text.TextPaint;
6 | import android.util.AttributeSet;
7 | import android.view.Gravity;
8 | import android.widget.TextView;
9 |
10 | /**
11 | * TextView that renders it's contents vertically. (Just using rotate doesn't work because onMeasure
12 | * happens before the View is rotated causing incorrect View boundaries)
13 | * Created by wdullaer on 28/03/16.
14 | */
15 | public class VerticalTextView extends TextView {
16 | final boolean topDown;
17 |
18 | public VerticalTextView(Context context, AttributeSet attrs){
19 | super(context, attrs);
20 | final int gravity = getGravity();
21 | if (Gravity.isVertical(gravity) && (gravity&Gravity.VERTICAL_GRAVITY_MASK) == Gravity.BOTTOM) {
22 | setGravity((gravity&Gravity.HORIZONTAL_GRAVITY_MASK) | Gravity.TOP);
23 | topDown = false;
24 | } else {
25 | topDown = true;
26 | }
27 | }
28 |
29 | @Override
30 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
31 | super.onMeasure(heightMeasureSpec, widthMeasureSpec);
32 | setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
33 | }
34 |
35 | @Override
36 | protected void onDraw(Canvas canvas){
37 | TextPaint textPaint = getPaint();
38 | textPaint.setColor(getCurrentTextColor());
39 | textPaint.drawableState = getDrawableState();
40 |
41 | canvas.save();
42 |
43 | if (topDown){
44 | canvas.translate(getWidth(), 0);
45 | canvas.rotate(90);
46 | } else {
47 | canvas.translate(0, getHeight());
48 | canvas.rotate(-90);
49 | }
50 |
51 |
52 | canvas.translate(getCompoundPaddingLeft(), getExtendedPaddingTop());
53 |
54 | getLayout().draw(canvas);
55 | canvas.restore();
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Material DateTimePicker
5 | HijriDatePicker Example
6 | The time you picked will be shown here.
7 | The date you picked will be shown here.
8 | The date and time you picked will be shown here.
9 | Pick Time
10 | Pick Date
11 | Pick Date+Time
12 | Use 24 hour mode
13 | Use dark theme
14 | Use custom accent
15 | Vibrate on touch
16 | Dismiss on pause (eg: orientation change)
17 | Show a title
18 | Use marshmallow layout
19 | Show the year picker first
20 | Show seconds picker
21 | Show minutes picker
22 | Limit selectable times
23 | Limit selectable dates
24 | Disable specific dates
25 | Highlight certain dates
26 | Settings
27 |
28 | Time
29 | Gregorian
30 | Date+Time
31 |
32 |
33 | Hello blank fragment
34 | Hijri
35 |
36 |
37 |
--------------------------------------------------------------------------------
/library/src/main/res/values-zh-rCN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "完成"
21 | "小时转盘"
22 | "分钟转盘"
23 | "选择小时"
24 | "选择分钟"
25 | "按月份划分的日期网格"
26 | "年份列表"
27 | "选择月份和日期"
28 | "选择年份"
29 | "已选择 %1$s"
30 | "已删除 %1$s"
31 | yyyy年M月
32 | M月dd日EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-zh-rHK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "完成"
21 | "小時環形滑桿"
22 | "分鐘環形滑桿"
23 | "選取小時"
24 | "選取分鐘"
25 | "日期網格 (按月顯示)"
26 | "年份清單"
27 | "選取月份和日期"
28 | "選取年份"
29 | "已選取%1$s"
30 | "已刪除 %1$s"
31 | yyyy年M月
32 | M月dd日EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-zh-rTW/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "完成"
21 | "小時數循環滑桿"
22 | "分鐘數循環滑桿"
23 | "選取小時數"
24 | "選取分鐘數"
25 | "日期網格 (按月顯示)"
26 | "年份清單"
27 | "選取月份和日期"
28 | "選取年份"
29 | "已選取 %1$s"
30 | "已刪除 %1$s"
31 | yyyy年M月
32 | M月dd日EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ja/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "完了"
21 | "円形スライダー(時)"
22 | "円形スライダー(分)"
23 | "時間を選択"
24 | "分を選択"
25 | "日グリッド(月別)"
26 | "年リスト"
27 | "月と日を選択"
28 | "年を選択"
29 | "%1$sを選択しました"
30 | "%1$sを削除しました"
31 | yyyy年M月
32 | M月dd日(EEE)
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ko/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "완료"
21 | "시간 원형 슬라이더"
22 | "분 원형 슬라이더"
23 | "시간 선택"
24 | "분 선택"
25 | "월별 바둑판식 날짜 표시"
26 | "년"
27 | "월/일 선택"
28 | "연도 선택"
29 | "%1$s이(가) 선택됨"
30 | "%1$s 삭제됨"
31 | yyyy년 MMMM
32 | MMM dd일 (EEE)
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/hijri/AccessibleDateAnimator.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 net.alhazmy13.hijridatepicker.date.hijri;
18 |
19 | import android.content.Context;
20 | import android.text.format.DateUtils;
21 | import android.util.AttributeSet;
22 | import android.view.accessibility.AccessibilityEvent;
23 | import android.widget.ViewAnimator;
24 |
25 | public class AccessibleDateAnimator extends ViewAnimator {
26 | private long mDateMillis;
27 |
28 | public AccessibleDateAnimator(Context context, AttributeSet attrs) {
29 | super(context, attrs);
30 | }
31 |
32 | public void setDateMillis(long dateMillis) {
33 | mDateMillis = dateMillis;
34 | }
35 |
36 | /**
37 | * Announce the currently-selected date when launched.
38 | */
39 | @Override
40 | public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
41 | if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {
42 | // Clear the event's current text so that only the current date will be spoken.
43 | event.getText().clear();
44 | int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR |
45 | DateUtils.FORMAT_SHOW_WEEKDAY;
46 |
47 | String dateString = "HH";
48 | event.getText().add(dateString);
49 | return true;
50 | }
51 | return super.dispatchPopulateAccessibilityEvent(event);
52 | }
53 | }
--------------------------------------------------------------------------------
/library/src/main/res/values-am/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "ተከናውኗል"
21 | "የሰዓታት ክብ ተንሸራታች"
22 | "የደቂቃዎች ክብ ተንሸራታች"
23 | "ሰዓታትን ምረጥ"
24 | "ደቂቃዎችን ምረጥ"
25 | "የቀናት የወር ፍርግርግ"
26 | "የዓመት ዝርዝር"
27 | "ወር እና ቀን ይምረጡ"
28 | "ዓመት ይምረጡ"
29 | "%1$s ተመርጧል"
30 | "%1$s ተሰርዟል"
31 | MMMM yyyy
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-iw/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "בוצע"
21 | "מחוון שעות מעגלי"
22 | "מחוון דקות מעגלי"
23 | "בחר שעות"
24 | "בחר דקות"
25 | "בחירת ימים בחודש בתצוגת רשת"
26 | "רשימת שנים"
27 | "בחר חודש ויום"
28 | "בחר שנה"
29 | "בחרת %1$s"
30 | "%1$s נמחק"
31 | MMMM yyyy
32 | EEE, dd בMMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-af/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Klaar"
21 | "Ure se sirkelglyer"
22 | "Minute se sirkelglyer"
23 | "Kies ure"
24 | "Kies minute"
25 | "Maandrooster van dae"
26 | "Jaarlys"
27 | "Kies maand en dag"
28 | "Kies jaar"
29 | "%1$s gekies"
30 | "%1$s uitgevee"
31 | MMMM yyyy
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-lo-rLA/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "ແລ້ວໆ"
21 | "ໂຕໝຸນປັບຊົ່ວໂມງ"
22 | "ໂຕໝຸນປັບນາທີ"
23 | "ເລືອກຊົ່ວໂມງ"
24 | "ເລືອກນາທີ"
25 | "ຕາຕະລາງວັນທີ"
26 | "ລາຍການປີ"
27 | "ເລືອກເດືອນ ແລະ ວັນ"
28 | "ເລືອກປີ"
29 | "%1$s ຖືກເລືອກແລ້ວ"
30 | "%1$s ຖືກລຶບແລ້ວ"
31 | MMMM yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-nl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Gereed"
21 | "Ronde schuifregelaar voor uren"
22 | "Ronde schuifregelaar voor minuten"
23 | "Uren selecteren"
24 | "Minuten selecteren"
25 | "Maandraster van dagen"
26 | "Jaarlijst"
27 | "Maand en dag selecteren"
28 | "Jaar selecteren"
29 | "%1$s geselecteerd"
30 | "%1$s verwijderd"
31 | MMMM yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-th/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "เสร็จสิ้น"
21 | "ตัวเลื่อนหมุนระบุชั่วโมง"
22 | "ตัวเลื่อนหมุนระบุนาที"
23 | "เลือกชั่วโมง"
24 | "เลือกนาที"
25 | "ตารางวันที่ของเดือน"
26 | "รายการปี"
27 | "เลือกเดือนและวัน"
28 | "เลือกปี"
29 | "เลือก %1$s"
30 | "ลบ %1$s แล้ว"
31 | MMMM yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-da/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Færdig"
21 | "Cirkulær timevælger"
22 | "Cirkulær minutvælger"
23 | "Vælg timer"
24 | "Vælg minutter"
25 | "Månedsgitter med dage"
26 | "Liste over år"
27 | "Vælg måned og dag"
28 | "Vælg år"
29 | "%1$s valgt"
30 | "%1$s er slettet"
31 | MMMM yyyy
32 | EEE dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-in/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Selesai"
21 | "Penggeser putar jam"
22 | "Penggeser putar menit"
23 | "Pilih jam"
24 | "Pilih menit"
25 | "Kisi hari pada bulan"
26 | "Daftar tahun"
27 | "Pilih bulan dan hari"
28 | "Pilih tahun"
29 | "%1$s dipilih"
30 | "%1$s dihapus"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-vi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Xong"
21 | "Thanh trượt giờ hình tròn"
22 | "Thanh trượt phút hình tròn"
23 | "Chọn giờ"
24 | "Chọn phút"
25 | "Lưới ngày theo tháng"
26 | "Danh sách năm"
27 | "Chọn tháng và ngày"
28 | "Chọn năm"
29 | "Đã chọn %1$s"
30 | "Đã xóa %1$s"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-en-rGB/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Done"
21 | "Hours circular slider"
22 | "Minutes circular slider"
23 | "Select hours"
24 | "Select minutes"
25 | "Month grid of days"
26 | "Year list"
27 | "Select month and day"
28 | "Select year"
29 | "%1$s selected"
30 | "%1$s deleted"
31 | MMMM yyyy
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-en-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Done"
21 | "Hours circular slider"
22 | "Minutes circular slider"
23 | "Select hours"
24 | "Select minutes"
25 | "Month grid of days"
26 | "Year list"
27 | "Select month and day"
28 | "Select year"
29 | "%1$s selected"
30 | "%1$s deleted"
31 | MMMM yyyy
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-hi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "पूर्ण"
21 | "घंटो का चक्राकार स्लाइडर"
22 | "मिनटों का चक्राकार स्लाइडर"
23 | "घंटे चुनें"
24 | "मिनट चुनें"
25 | "दिनों की माह ग्रिड"
26 | "वर्ष की सूची"
27 | "माह और दिन चुनें"
28 | "वर्ष चुनें"
29 | "%1$s चयनित"
30 | "%1$s को हटा दिया गया"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-mr-rIN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "पूर्ण झाले"
21 | "तास परिपत्रक स्लायडर"
22 | "मिनिटे परिपत्रक स्लायडर"
23 | "तास निवडा"
24 | "मिनिटे निवडा"
25 | "दिवसांची महिना ग्रिड"
26 | "वर्ष सूची"
27 | "महिना आणि दिवस निवडा"
28 | "वर्ष निवडा"
29 | "%1$s निवडले"
30 | "%1$s हटविली"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-si-rLK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "අවසන්"
21 | "පැය කවාකාර සර්පනය"
22 | "මිනිත්තු කවාකාර සර්පනය"
23 | "පැය තෝරන්න"
24 | "මිනිත්තු තෝරන්න"
25 | "දින ජාලයකින් මාසය"
26 | "වසර ලැයිස්තුව"
27 | "මාසය සහ දිනය තෝරන්න"
28 | "වසර තෝරන්න"
29 | "%1$s තෝරාගෙන ඇත"
30 | "%1$s මකා දමන ලදි"
31 | yyyy MMMM
32 | MMM dd EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-is-rIS/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Lokið"
21 | "Valskífa fyrir klukkustundir"
22 | "Valskífa fyrir mínútur"
23 | "Velja klukkustundir"
24 | "Velja mínútur"
25 | "Mánaðartafla með dögum"
26 | "Áralisti"
27 | "Velja mánuð og dag"
28 | "Velja ár"
29 | "%1$s valið"
30 | "%1$s eytt"
31 | MMMM yyyy
32 | EEE, dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-km-rKH/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "ធ្វើរួច"
21 | "គ្រាប់រំកិលរង្វង់ម៉ោង"
22 | "គ្រាប់រំកិលរង្វង់នាទី"
23 | "ជ្រើសម៉ោង"
24 | "ជ្រើសនាទី"
25 | "ក្រឡាចត្រង្គខែនៃថ្ងៃ"
26 | "បញ្ជីឆ្នាំ"
27 | "ជ្រើសខែ និងថ្ងៃ"
28 | "ជ្រើសឆ្នាំ"
29 | "បានជ្រើស %1$s"
30 | "បានលុប %1$s"
31 | MMMM yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-mn-rMN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Дууссан"
21 | "Цаг гүйлгэгч"
22 | "Минут гүйлгэгч"
23 | "Цаг сонгоно уу"
24 | "Минут сонгоно уу"
25 | "Өдрүүдийг сараар"
26 | "Жилийн жагсаалт"
27 | "Сар болон өдрийг сонгоно уу"
28 | "Жилийг сонгоно уу"
29 | "%1$s сонгогдсон"
30 | "%1$s устсан"
31 | yyyy MMMM
32 | EEE MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ms-rMY/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Selesai"
21 | "Penggelangsar bulatan jam"
22 | "Penggelangsar bulatan minit"
23 | "Pilih jam"
24 | "Pilih minit"
25 | "Grid bulan hari"
26 | "Senarai tahun"
27 | "Pilih bulan dan hari"
28 | "Pilih tahun"
29 | "%1$s dipilih"
30 | "%1$s dipadamkan"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-pl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Gotowe"
21 | "Kołowy suwak godzin"
22 | "Kołowy suwak minut"
23 | "Wybierz godziny"
24 | "Wybierz minuty"
25 | "Siatka miesięczna z dniami"
26 | "Lista lat"
27 | "Wybierz miesiąc i dzień"
28 | "Wybierz rok"
29 | "Wybrałeś %1$s"
30 | "%1$s usunięte"
31 | LLLL yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sv/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Klar"
21 | "Cirkelreglage för timmar"
22 | "Cirkelreglage för minuter"
23 | "Välj timmar"
24 | "Välj minuter"
25 | "Rutnät för månad"
26 | "Lista över år"
27 | "Välj månad och dag"
28 | "Välj år"
29 | "%1$s har markerats"
30 | "%1$s har tagits bort"
31 | MMMM yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-tr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Bitti"
21 | "Saatler için kaydırma çemberi"
22 | "Dakikalar için kaydırma çemberi"
23 | "Saat seçin"
24 | "Dakika seçin"
25 | "Ayın günleri tablosu"
26 | "Yıl listesi"
27 | "Ayı ve günü seçin"
28 | "Yılı seçin"
29 | "%1$s seçildi"
30 | "%1$s silindi"
31 | MMMM yyyy
32 | dd MMMM EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/java/net/alhazmy13/hijridatepicker/date/gregorian/AccessibleDateAnimator.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 net.alhazmy13.hijridatepicker.date.gregorian;
18 |
19 | import android.content.Context;
20 | import android.text.format.DateUtils;
21 | import android.util.AttributeSet;
22 | import android.view.accessibility.AccessibilityEvent;
23 | import android.widget.ViewAnimator;
24 |
25 | public class AccessibleDateAnimator extends ViewAnimator {
26 | private long mDateMillis;
27 |
28 | public AccessibleDateAnimator(Context context, AttributeSet attrs) {
29 | super(context, attrs);
30 | }
31 |
32 | public void setDateMillis(long dateMillis) {
33 | mDateMillis = dateMillis;
34 | }
35 |
36 | /**
37 | * Announce the currently-selected date when launched.
38 | */
39 | @Override
40 | public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
41 | if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) {
42 | // Clear the event's current text so that only the current date will be spoken.
43 | event.getText().clear();
44 | int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR |
45 | DateUtils.FORMAT_SHOW_WEEKDAY;
46 |
47 | String dateString = DateUtils.formatDateTime(getContext(), mDateMillis, flags);
48 | event.getText().add(dateString);
49 | return true;
50 | }
51 | return super.dispatchPopulateAccessibilityEvent(event);
52 | }
53 | }
--------------------------------------------------------------------------------
/library/src/main/res/values-ar/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "تم"
21 | "شريط التمرير الدائري للساعات"
22 | "شريط التمرير الدائري للدقائق"
23 | "تحديد الساعات"
24 | "تحديد الدقائق"
25 | "شبكة الشهر مكونة من الأيام"
26 | "قائمة الأعوام"
27 | "تحديد الشهر واليوم"
28 | "تحديد العام"
29 | "تم تحديد %1$s"
30 | "تم حذف %1$s"
31 | MMMM yyyy
32 | EEE، dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-cs/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Hotovo"
21 | "Kruhový posuvník hodin"
22 | "Kruhový posuvník minut"
23 | "Zvolte hodiny"
24 | "Zvolte minuty"
25 | "Dny uspořádané po měsících"
26 | "Seznam roků"
27 | "Vyberte měsíc a den"
28 | "Vyberte rok"
29 | "Vybrána položka %1$s"
30 | "%1$s smazáno"
31 | LLLL yyyy
32 | EEE dd. M.
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-fa/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "انجام شد"
21 | "لغزنده دایرهای ساعت"
22 | "لغزنده دایرهای دقیقه"
23 | "انتخاب ساعت"
24 | "انتخاب دقیقه"
25 | "روزهای ماه به صورت جدول"
26 | "فهرست سالها"
27 | "ماه و روز را انتخاب کنید"
28 | "سال را انتخاب کنید"
29 | "%1$s انتخاب شد"
30 | "%1$s حذف شد"
31 | MMMM yyyy
32 | EEE dd LLL
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ka-rGE/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "დასრულდა"
21 | "წრიული სლაიდერის დამალვა"
22 | "წუთების წრიული სლაიდერი"
23 | "აირჩიეთ საათები"
24 | "აირჩიეთ წუთები"
25 | "დღეების ბადე თვეზე"
26 | "წლის სია"
27 | "აირჩიეთ თვე და რიცხვი"
28 | "აირჩიეთ წელი"
29 | "არჩეულია %1$s"
30 | "%1$s წაიშალა"
31 | MMMM, yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Dokončano"
21 | "Okrogli drsnik za ure"
22 | "Okrogli drsnik za minute"
23 | "Izberite ure"
24 | "Izberite minute"
25 | "Mesečna mreža dni"
26 | "Seznam let"
27 | "Izberite mesec in dan"
28 | "Izberite leto"
29 | "Izbrano: %1$s"
30 | "%1$s je izbrisana"
31 | MMMM yyyy
32 | EEE, dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-mk-rMK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Готово"
21 | "Приказ на часови во круг"
22 | "Приказ на минути во круг"
23 | "Избери часови"
24 | "Избери минути"
25 | "Месец со денови"
26 | "Список со години"
27 | "Избери месец и ден"
28 | "Избери година"
29 | "Избрано: %1$s"
30 | "Избришано: %1$s"
31 | MMMM yyyy \'г\'.
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ro/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Terminat"
21 | "Indicator circular ore"
22 | "Indicator circular minute"
23 | "Selectați orele"
24 | "Selectați minutele"
25 | "Afișare pe luni"
26 | "Listă de ani"
27 | "Selectați luna și ziua"
28 | "Selectați anul"
29 | "%1$s selectat"
30 | "%1$s a fost șters"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-uk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Готово"
21 | "Вибір годин на циферблаті"
22 | "Вибір хвилин на циферблаті"
23 | "Вибрати години"
24 | "Вибрати хвилини"
25 | "Дні місяця – ескізи"
26 | "Роки – список"
27 | "Виберіть місяць і день"
28 | "Виберіть рік"
29 | "Вибрано: %1$s"
30 | "%1$s видалено"
31 | LLLL yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ur-rPK/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "ہوگیا"
21 | "گھنٹوں کا سرکلر سلائیڈر"
22 | "منٹ کا سرکلر سلائیڈر"
23 | "گھنٹے منتخب کریں"
24 | "منٹ منتخب کریں"
25 | "دنوں کا ماہ کا گرڈ"
26 | "سال کی فہرست"
27 | "مہینہ اور دن منتخب کریں"
28 | "سال منتخب کریں"
29 | "%1$s منتخب ہوگیا"
30 | "%1$s حذف ہوگیا"
31 | MMMM yyyy
32 | EEE، dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-kk-rKZ/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Орындалды"
21 | "Сағаттардың дөңгелек жүгірткісі"
22 | "Минуттардың дөңгелек жүгірткісі"
23 | "Сағат таңдау"
24 | "Минут таңдау"
25 | "Күндердің айлық торы"
26 | "Жылдар тізімі"
27 | "Ай мен күнді таңдау"
28 | "Жыл таңдау"
29 | "%1$s таңдалды"
30 | "%1$s жойылды"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ky-rKG/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Аткарылды"
21 | "Саат боюнча айлангыч"
22 | "Мүнөт боюнча айлангыч"
23 | "Саатты тандаңыз"
24 | "Мүнөттөрдү тандаңыз"
25 | "Айдын күндөрү"
26 | "Жыл тизмеси"
27 | "Ай жана күндү тандаңыз"
28 | "Жылды тандаңыз"
29 | "%1$s тандалды"
30 | "%1$s жок кылынды"
31 | yyyy-\'ж\'. MMMM
32 | dd-MMM, EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-nb/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Ferdig"
21 | "Sirkulær glidebryter for timer"
22 | "Sirkulær glidebryter for minutter"
23 | "Angi timer"
24 | "Angi minutter"
25 | "Månedsrutenett med dager"
26 | "Årsliste"
27 | "Velg måneden og dagen"
28 | "Velg året"
29 | "%1$s er valgt"
30 | "%1$s er slettet"
31 | MMMM yyyy
32 | EEE dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Готово"
21 | "Выбор часов на циферблате"
22 | "Выбор минут на циферблате"
23 | "Выберите часы"
24 | "Выберите минуты"
25 | "Окно выбора даты"
26 | "Меню выбора года"
27 | "Выберите месяц и день"
28 | "Выберите год"
29 | "Выбран элемент %1$s"
30 | "Цифра %1$s удалена"
31 | LLLL yyyy
32 | ccc, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Hotovo"
21 | "Kruhový posúvač hodín"
22 | "Kruhový posúvač minút"
23 | "Vyberte hodiny"
24 | "Vyberte minúty"
25 | "Tabuľka dní v mesiaci"
26 | "Zoznam rokov"
27 | "Vyberte mesiac a deň"
28 | "Vyberte rok"
29 | "Bola vybratá položka %1$s"
30 | "%1$s odstránené"
31 | LLLL yyyy
32 | EEE, dd. MMM.
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-uz-rUZ/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Tayyor"
21 | "Soat ko‘rsatkichli doira"
22 | "Daqiqa ko‘rsatkichli doira"
23 | "Soatni tanlash"
24 | "Daqiqani tanlash"
25 | "Oy kunlari jadvali"
26 | "Yillar ro‘yxati"
27 | "Oy va kunni tanlash"
28 | "Yilni tanlash"
29 | "%1$s tanlandi"
30 | "%1$s o‘chirildi"
31 | yyyy MMMM
32 | MMM dd, EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-el/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Τέλος"
21 | "Κυκλικό ρυθμιστικό ωρών"
22 | "Κυκλικό ρυθμιστικό λεπτών"
23 | "Επιλέξτε ώρες"
24 | "Επιλέξτε λεπτά"
25 | "Πλέγμα ημερών του μήνα"
26 | "Λίστα ετών"
27 | "Επιλογή μήνα και ημέρας"
28 | "Επιλογή έτους"
29 | "Επιλέχτηκε το στοιχείο %1$s"
30 | "%1$s διαγράφηκε"
31 | LLLL yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-hr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Gotovo"
21 | "Kružni klizač sati"
22 | "Kružni klizač minuta"
23 | "Odaberite sate"
24 | "Odaberite minute"
25 | "Mreža dana u mjesecu"
26 | "Popis godina"
27 | "Odaberite mjesec i dan"
28 | "Odaberite godinu"
29 | "Odabrana je stavka %1$s"
30 | "Izbrisan je znak %1$s"
31 | LLLL yyyy.
32 | EEE, dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-my-rMM/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "လုပ်ပြီး"
21 | "နာရီ ရွေးစရာ စက်ဝိုင်း"
22 | "မိနစ် ရွေးစရာ စက်ဝိုင်း"
23 | "နာရီများ ရွေးပါ"
24 | "မိနစ်များ ရွေးပါ"
25 | "လအလိုက် နေ့များ အကွက်"
26 | "ခုနှစ် စာရင်း"
27 | "လ နှင့် နေ့ ရွေးပါ"
28 | "ခုနှစ်ကို ရွေးပါ"
29 | "%1$s ရွေးထားပြီး"
30 | "%1$s ကို ဖျက်ပြီး"
31 | yyyy MMMM
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-lv/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Gatavs"
21 | "Stundu apļveida slīdnis"
22 | "Minūšu apļveida slīdnis"
23 | "Atlasīt stundas"
24 | "Atlasīt minūtes"
25 | "Režģis ar mēneša dienām"
26 | "Gadu saraksts"
27 | "Atlasiet mēnesi un dienu"
28 | "Atlasiet gadu"
29 | "Atlasīts: %1$s"
30 | "%1$s tika dzēsts"
31 | yyyy. \'g\'. MMMM
32 | EEE, dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ne-rNP/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "सम्पन्न भयो"
21 | "घण्टा गोलाकार स्लाइडर"
22 | "मिनेट गोलाकार स्लाइडर"
23 | "घण्टा चयन गर्नुहोस्"
24 | "मिनेट चयन गर्नुहोस्"
25 | "दिनहरुको महिना ग्रिड"
26 | "वर्ष सूची"
27 | "महिना र दिन चयन गर्नुहोस्"
28 | "वर्ष चयन गर्नुहोस्"
29 | "%1$s चयन गरियो"
30 | "%1$s हटाइयो"
31 | yyyy MMMM
32 | MMM dd, EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sw/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Nimemaliza"
21 | "Kitelezi cha mviringo cha saa"
22 | "Kitelezi cha mviringo cha dakika"
23 | "Chagua saa"
24 | "Chagua dakika"
25 | "Gridi ya mwezi ya siku"
26 | "Orodha ya miaka"
27 | "Chagua mwezi na siku"
28 | "Chagua mwaka"
29 | "%1$s kimechaguliwa"
30 | "%1$s kimefutwa"
31 | MMMM yyyy
32 | EEE, dd MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-hy-rAM/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Կատարված է"
21 | "Ժամերի ընտրություն թվատախտակից"
22 | "Րոպեների ընտրություն թվատախտակից"
23 | "Ընտրեք ժամերը"
24 | "Ընտրեք րոպեները"
25 | "Ամսաթվի ընտրության պատուհան"
26 | "Տարիների ցանկը"
27 | "Ընտրեք ամիսն ու օրը"
28 | "Ընտրեք տարին"
29 | "%1$s ընտրված"
30 | "%1$s ջնջված"
31 | yyyyթ. LLLL
32 | dd MMM, EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Готово"
21 | "Кружни клизач за сате"
22 | "Кружни клизач за минуте"
23 | "Изабери сате"
24 | "Изабери минуте"
25 | "Приказ дана у месецу у виду мреже"
26 | "Листа година"
27 | "Изаберите месец и дан"
28 | "Изаберите годину"
29 | "Ставка %1$s је изабрана"
30 | "Избрисали сте %1$s"
31 | MMMM yyyy.
32 | EEE dd. MMM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-bg/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Готово"
21 | "Кръгов плъзгач за часовете"
22 | "Кръгов плъзгач за минутите"
23 | "Избиране на часове"
24 | "Избиране на минути"
25 | "Месечна таблица на дните"
26 | "Списък на годините"
27 | "Изберете месец и ден"
28 | "Изберете година"
29 | "Избрахте %1$s"
30 | "Изтрихте %1$s"
31 | MMMM yyyy \'г\'.
32 | EEE, dd.MM
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-hu/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Kész"
21 | "óra kör alakú csúszkája"
22 | "perc kör alakú csúszkája"
23 | "Óra kiválasztása"
24 | "Perc kiválasztása"
25 | "Napok havi leosztásban"
26 | "Évek listája"
27 | "Válassza ki a hónapot és a napot"
28 | "Válassza ki az évet"
29 | "%1$s kiválasztva"
30 | "A(z) %1$s érték törölve"
31 | yyyy. MMMM
32 | MMM dd., EEE
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-zu/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Kwenziwe"
21 | "Amahora weslayidi esiyindingilizi"
22 | "Amaminithi weslayidi esiyindingilizi"
23 | "Khetha amahora"
24 | "Khetha amaminithi"
25 | "Igridi yenyanga yezinsuku"
26 | "Uhlu lonyaka"
27 | "Khetha inyanga nosuku"
28 | "Khetha unyaka"
29 | "I-%1$s ekhethiwe"
30 | "I-%1$s isusiwe"
31 | MMMM yyyy
32 | EEE, MMM dd
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ca/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
20 | "Fet"
21 | "Control circular de les hores"
22 | "Control circular dels minuts"
23 | "Selecciona les hores"
24 | "Selecciona els minuts"
25 | "Graella mensual de dies"
26 | "Llista anual"
27 | "Selecciona un mes i un dia"
28 | "Selecciona un any"
29 | "%1$s seleccionat"
30 | "%1$s suprimit"
31 | LLLL \'de\' yyyy
32 | EEE dd MMM
33 |
34 |
--------------------------------------------------------------------------------