From 7dcbf6507e387c6d0824e4a6e19b82eeff439bac Mon Sep 17 00:00:00 2001 From: mishatron Date: Wed, 17 Apr 2019 13:47:16 +0300 Subject: [PATCH] update readme --- readme.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index be3b1f6..d996e0e 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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()