Skip to content

Commit 469d8b3

Browse files
authored
Update README.md
1 parent d1ad489 commit 469d8b3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An Android library to create fully material designed bottom dialogs similar to t
55

66
## Releases:
77

8-
#### Current release: 2.0.6.
8+
#### Current release: 2.0.7.
99

1010
- Now with AndroidX support.
1111

@@ -18,7 +18,7 @@ You can see all the library releases [here](https://github.com/marcoscgdev/Dialo
1818

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

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

2323
---
2424

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

4242
```
43-
implementation 'com.github.marcoscgdev:DialogSheet:2.0.6'
43+
implementation 'com.github.marcoscgdev:DialogSheet:2.0.7'
4444
```
4545

4646
### Creating the dialog with Java
@@ -65,6 +65,7 @@ new DialogSheet(this)
6565
// Your action
6666
}
6767
})
68+
.setNeutralButton("Neutral", null)
6869
.setBackgroundColor(Color.BLACK) // Your custom background color
6970
.setButtonsColorRes(R.color.colorPrimary) // Default color is accent
7071
.show();
@@ -86,6 +87,9 @@ val dialogSheet:DialogSheet = DialogSheet(this@MainActivity)
8687
.setNegativeButton(android.R.string.cancel) {
8788
// Your action
8889
}
90+
.setNeutralButton("Neutral") {
91+
// Your action
92+
}
8993
.setRoundedCorners(false) // Default value is true
9094
.setBackgroundColor(Color.BLACK) // Your custom background color
9195
.setButtonsColorRes(R.color.colorPrimary) // Default color is accent

0 commit comments

Comments
 (0)