Skip to content

Commit

Permalink
* fix incorrect selected date within HijriCalender (for version 2)
Browse files Browse the repository at this point in the history
* fix hidden labels with some fonts
  • Loading branch information
alhazmy13 committed Aug 13, 2017
1 parent 11ccd19 commit 9e46a74
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 23 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
![](https://img.shields.io/badge/Platform-Android-brightgreen.svg)
![](https://img.shields.io/badge/Android-CustomView-blue.svg)
![](https://img.shields.io/crates/l/rustc-serialize.svg)
![](https://img.shields.io/badge/version-2.0.1-blue.svg)
![](https://img.shields.io/badge/version-2.0.2-blue.svg)

This library offers a hijri (Islamic Calendar) Date Picker designed on [Google's Material Design Principals For Pickers](http://www.google.com/design/spec/components/pickers.html) for Android 4.1 (API 16) +.

Expand All @@ -28,15 +28,15 @@ You can report any issue on issues page. **Note: If you speak Arabic, you can su
<dependency>
<groupId>net.alhazmy13.hijridatepicker</groupId>
<artifactId>library</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
</dependency>
```
**Gradle**

```gradle
dependencies {
compile 'net.alhazmy13.hijridatepicker:library:2.0.1'
compile 'net.alhazmy13.hijridatepicker:library:2.0.2'
}
```

Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish {
groupId = 'net.alhazmy13.hijridatepicker'
artifactId = 'library'
uploadName = 'HijriDatePicker-v2'
publishVersion = '2.0.1'
publishVersion = '2.0.2'
desc = 'Hijri Date Picker'
dryRun = false
website = 'https://github.com/alhzmy13/HijriDatePicker'
Expand Down
14 changes: 7 additions & 7 deletions library/library.iml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,11 @@ private void updateDisplay(boolean announce) {
}

if (mVersion == Version.VERSION_2) {
mSelectedDayTextView.setText(VERSION_2_FORMAT.format(mCalendar.getTime()));
String day =
mCalendar.getDisplayName(UmmalquraCalendar.DAY_OF_WEEK,UmmalquraCalendar.SHORT,getLocal())
+", "+ mCalendar.getDisplayName(UmmalquraCalendar.MONTH,UmmalquraCalendar.SHORT,getLocal())
+ " "+mCalendar.get(Calendar.DAY_OF_MONTH);
mSelectedDayTextView.setText(day);
if (mTitle != null)
mDatePickerHeaderView.setText(mTitle.toUpperCase(Locale.getDefault()));
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mdtp_day_picker_selected_date_layout"
android:layout_width="@dimen/mdtp_date_picker_component_width"
android:layout_height="@dimen/mdtp_selected_date_height"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/mdtp_accent_color"
android:gravity="center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mdtp_day_picker_selected_date_layout"
android:layout_width="@dimen/mdtp_date_picker_header_width"
android:layout_height="@dimen/mdtp_date_picker_header_height"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/mdtp_accent_color"
android:gravity="top"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mdtp_hijri_day_picker_selected_date_layout"
android:layout_width="@dimen/mdtp_date_picker_component_width"
android:layout_height="@dimen/mdtp_selected_date_height"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/mdtp_accent_color"
android:gravity="center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mdtp_hijri_day_picker_selected_date_layout"
android:layout_width="@dimen/mdtp_date_picker_header_width"
android:layout_height="@dimen/mdtp_date_picker_header_height"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/mdtp_accent_color"
android:gravity="top"
Expand Down
14 changes: 7 additions & 7 deletions sample/sample.iml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
Expand Down

0 comments on commit 9e46a74

Please sign in to comment.