Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscgdev authored Aug 4, 2019
1 parent d1ad489 commit 469d8b3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 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.6.
#### Current release: 2.0.7.

- Now with AndroidX support.

Expand All @@ -18,7 +18,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.4/app-debug.apk).
Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.0.7/app-debug.apk).

---

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

```
implementation 'com.github.marcoscgdev:DialogSheet:2.0.6'
implementation 'com.github.marcoscgdev:DialogSheet:2.0.7'
```

### Creating the dialog with Java
Expand All @@ -65,6 +65,7 @@ new DialogSheet(this)
// Your action
}
})
.setNeutralButton("Neutral", null)
.setBackgroundColor(Color.BLACK) // Your custom background color
.setButtonsColorRes(R.color.colorPrimary) // Default color is accent
.show();
Expand All @@ -86,6 +87,9 @@ val dialogSheet:DialogSheet = DialogSheet(this@MainActivity)
.setNegativeButton(android.R.string.cancel) {
// Your action
}
.setNeutralButton("Neutral") {
// Your action
}
.setRoundedCorners(false) // Default value is true
.setBackgroundColor(Color.BLACK) // Your custom background color
.setButtonsColorRes(R.color.colorPrimary) // Default color is accent
Expand Down

0 comments on commit 469d8b3

Please sign in to comment.