Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrKriv committed Aug 31, 2022
1 parent eb02dd7 commit f9fe31a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 76 deletions.
91 changes: 15 additions & 76 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Also supports input from keyboard, checks and validations for date and time.
<br/>


![](./sample.gif)
<p align="center">
<img src="./sample.gif" />
</p>


<br/>
Expand Down Expand Up @@ -65,7 +67,6 @@ implementation 'com.github.Mobile-Innowise-Group:DateTime-Reel-Picker:{latest ve

**LocalTime:**

<br/>

| Method | What it does |
|-------------|-------------|
Expand All @@ -82,7 +83,6 @@ implementation 'com.github.Mobile-Innowise-Group:DateTime-Reel-Picker:{latest ve

**LocalDate:**

<br/>

| Method | What it does |
|------------|--------------|
Expand All @@ -102,7 +102,6 @@ implementation 'com.github.Mobile-Innowise-Group:DateTime-Reel-Picker:{latest ve

**LocalDateTime:**

<br/>

| Method | What it does |
|-------------|-----------------------|
Expand All @@ -121,36 +120,16 @@ implementation 'com.github.Mobile-Innowise-Group:DateTime-Reel-Picker:{latest ve
### __Date dialog example:__


#### ***Basic implementation***
#### ***Basic (default) implementation***

#### Kotlin
``` kotlin
ReelPicker
.createDateDialog()
.setOkClickCallback(object : ReelPicker.OkClickCallback<LocalDate> {
override fun onOkClick(value: LocalDate) {
//do whatever you want with callback value
}
})
.setCancelClickCallback(object : ReelPicker.CancelClickCallback{
override fun onCancelClick() {
//do whatever you want
}
})
.showDialog(supportFragmentManager)
ReelPicker.createDateDialog().showDialog(supportFragmentManager)
```

#### Java
``` java
ReelPicker
.createDateDialog()
.setOkClickCallback(value -> {
//do whatever you want with callback value
})
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager)
ReelPicker.createDateDialog().showDialog(getSupportFragmentManager());
```
<br/>

Expand Down Expand Up @@ -193,7 +172,7 @@ ReelPicker
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager)
.showDialog(getSupportFragmentManager());
```

<br/>
Expand All @@ -205,39 +184,19 @@ ReelPicker
### __Time dialog example:__


#### ***Default implementation***
#### ***Basic (default) implementation***

#### Kotlin

``` kotlin
ReelPicker
.createTimeDialog()
.setOkClickCallback(object : ReelPicker.OkClickCallback<LocalTime> {
override fun onOkClick(value: LocalTime) {
//do whatever you want with callback value
}
})
.setCancelClickCallback(object : ReelPicker.CancelClickCallback{
override fun onCancelClick() {
//do whatever you want
}
})
.showDialog(supportFragmentManager)
ReelPicker.createTimeDialog().showDialog(supportFragmentManager)
```

<br/>

#### Java
``` java
ReelPicker
.createTimeDialog()
.setOkClickCallback(value -> {
//do whatever you want with callback value
})
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager)
ReelPicker.createTimeDialog().showDialog(getSupportFragmentManager());
```


Expand Down Expand Up @@ -282,7 +241,7 @@ ReelPicker
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager)
.showDialog(getSupportFragmentManager());
```

<br/>
Expand All @@ -294,39 +253,19 @@ ReelPicker
### __Date and time dialog example:__


#### ***Default implementation***
#### ***Basic (default) implementation***

#### Kotlin

``` kotlin
ReelPicker
.createDateTimeDialog()
.setOkClickCallback(object : ReelPicker.OkClickCallback<LocalDateTime> {
override fun onOkClick(value: LocalDateTime) {
//do whatever you want with callback value
}
})
.setCancelClickCallback(object : ReelPicker.CancelClickCallback{
override fun onCancelClick() {
//do whatever you want
}
})
.showDialog(supportFragmentManager)
ReelPicker.createDateTimeDialog().showDialog(supportFragmentManager)
```

<br/>

#### Java
``` java
ReelPicker
.createDateTimeDialog()
.setOkClickCallback(value -> {
//do whatever you want with callback value
})
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager);
ReelPicker.createDateTimeDialog().showDialog(getSupportFragmentManager());
```

<br/>
Expand Down Expand Up @@ -383,7 +322,7 @@ ReelPicker
.setCancelClickCallback(() -> {
//do whatever you want
})
.showDialog(fragmentManager);
.showDialog(getSupportFragmentManager());
```


Expand Down
Binary file modified collage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f9fe31a

Please sign in to comment.