Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscgdev authored Dec 20, 2019
1 parent 869d947 commit 8f5fea1
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,7 +5,7 @@ An Android library to create fully material designed bottom dialogs similar to t

## Releases:

#### Current release: 2.0.8.
#### Current release: 2.0.9.

- Now with buttons coloring support (again) via code.
- Now with AndroidX support.
Expand All @@ -19,7 +19,7 @@ You can see all the library releases [here](https://github.com/marcoscgdev/Dialo

<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/DialogSheet/master/screenshots/sc_3.png" width="620"></kbd>

Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.0.7/app-debug.apk).
Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.0.9/app-debug.apk).

---

Expand All @@ -41,7 +41,7 @@ allprojects {
Now add the dependency to your app build.gradle file:

```
implementation 'com.github.marcoscgdev:DialogSheet:2.0.8'
implementation 'com.github.marcoscgdev:DialogSheet:2.0.9'
```

### Creating the dialog with Java
Expand All @@ -53,6 +53,7 @@ new DialogSheet(this)
.setTitle(R.string.app_name)
.setMessage(R.string.lorem)
.setColoredNavigationBar(true)
.setTitleTextSize(20) // In SP
.setCancelable(false)
.setPositiveButton(android.R.string.ok, new DialogSheet.OnPositiveClickListener() {
@Override
Expand Down Expand Up @@ -81,6 +82,7 @@ val dialogSheet:DialogSheet = DialogSheet(this@MainActivity)
.setTitle(R.string.app_name)
.setMessage(R.string.lorem)
.setColoredNavigationBar(true)
.setTitleTextSize(20) // In SP
.setCancelable(false)
.setPositiveButton(android.R.string.ok) {
// Your action
Expand Down

0 comments on commit 8f5fea1

Please sign in to comment.