Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mishatron committed Apr 17, 2019
1 parent d67f067 commit 7dcbf65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This is an util for choosing date and time in dialog.

It can be customized differently, you can see documentation.

https://github.com/mishatron/DateTimePicker/releases/latest/

![](https://raw.githubusercontent.com/mishatron/DateTimePicker/master/app/src/main/res/drawable/screenshot1.gif)

## How to install
Expand All @@ -22,14 +24,14 @@ Add the dependency:
```
dependencies {
...
implementation 'com.github.mishatron:DateTimePicker:0.0.1'
implementation 'com.github.mishatron:DateTimePicker:0.0.2'
}
```
And then you can use it:
```
DateTimePickerDialog.Builder(this)
.setOnOkListener { Toast.makeText(this, "ok", Toast.LENGTH_SHORT).show() }
.setButtonTitle("okay")
.setOnOkListener { Toast.makeText(this, "Selected time is $it", Toast.LENGTH_SHORT).show() }
.setButtonTitle("Ok")
.setBackgroundColor(Color.GREEN)
.setButtonBackgroundColor(Color.BLUE)
.build().show()
Expand Down

0 comments on commit 7dcbf65

Please sign in to comment.