Skip to content

Commit 7cae1fe

Browse files
committed
2 parents 102dc10 + 8e6cb69 commit 7cae1fe

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# PersianDatePicker
22

3-
[ ![Download](https://api.bintray.com/packages/emadrazavi/PersianDatePicker/dev.emad.persiandatepicker/images/download.svg?version=1.0.1) ](https://bintray.com/emadrazavi/PersianDatePicker/dev.emad.persiandatepicker/1.0.1/link)
3+
[![platform](https://img.shields.io/badge/platform-Android-green.svg)](https://www.android.com)
4+
[ ![Download](https://api.bintray.com/packages/emadrazavi/PersianDatePicker/dev.emad.persiandatepicker/images/download.svg?version=1.0.4) ](https://bintray.com/emadrazavi/PersianDatePicker/dev.emad.persiandatepicker/1.0.4/link)
5+
[![API](https://img.shields.io/badge/API-17%2B-blue.svg?color=important)](https://android-arsenal.com/api?level=17)
6+
![GitHub](https://img.shields.io/github/license/razavioo/PersianDatePicker?color=red)
47

58
This library is a Persian date picker with huge customization options.
69
My initial idea for creating this library was to build it to be used for a lot of different UI conditions.
710

811
## Screenshot
9-
<img src="https://github.com/razavioo/PersianDatePicker/blob/master/screenshot/screenshot.png">
12+
<img src="https://github.com/razavioo/PersianDatePicker/blob/master/screenshot/screenshot.png" width=300>
1013

1114
## Customizations
1215

@@ -25,8 +28,8 @@ buildscript {
2528
}
2629
2730
dependencies {
31+
implementation 'dev.emad:persiandatepicker:{latest_version}'
2832
implementation 'com.shawnlin:number-picker:2.4.11'
29-
implementation 'dev.emad:persiandatepicker:1.0.1'
3033
}
3134
```
3235

@@ -66,14 +69,14 @@ Digits are the number of the month, and the string is the name of the month.
6669

6770
* #### Listener
6871
For listening to changes in the picker, you can use the below method.
69-
the interface hase three methods, **onYearChanged**, **onMonthChanged**, **onDayChanged**.
72+
the interface has three methods, **onYearChanged**, **onMonthChanged**, **onDayChanged**.
7073

7174
| Method | Description
7275
| ------------------------------------- | --------|
73-
| setListener(listener: Listener) | set listener for year, month and day changes
76+
| setListener(listener: Listener) | set a listener for the year, month, and day changes
7477

7578
## Implementation suggestion
76-
As this clas needs to be customized based off of your special UI needs and conditions,
79+
As this class needs to be customized based on your special UI needs and conditions,
7780
I suggest that you create a class that extends the [**PersianDatePicker**](https://github.com/razavioo/PersianDatePicker/blob/master/PersianDatePicker/src/main/java/com/razavioo/persiandatepicker/PersianDatePicker.kt) class and has initialized with all your special configurations. then use this class instead of the general class.
7881
In the [sample](https://github.com/razavioo/PersianDatePicker/blob/master/app/src/main/java/com/razavioo/sample/MyPersianDatePicker.kt), I have created one and you can get the idea by watching it.
7982

0 commit comments

Comments
 (0)