Skip to content

Commit 82f9c87

Browse files
committed
2 parents 58e4bdb + c177818 commit 82f9c87

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

README.md

Lines changed: 10 additions & 14 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.1.0.
8+
#### Current release: 2.1.1.
99

1010
- This library is now based on Kotlin and AndroidX.
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.1.0/app-debug.apk).
21+
Download the sample apk [here](https://github.com/marcoscgdev/DialogSheet/releases/download/2.1.1/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.1.0'
43+
implementation 'com.github.marcoscgdev:DialogSheet:2.1.1'
4444
```
4545

4646
### Creating the dialog
@@ -54,17 +54,13 @@ val dialogSheet = DialogSheet(this)
5454
.setColoredNavigationBar(true)
5555
.setTitleTextSize(20) // In SP
5656
.setCancelable(false)
57-
.setPositiveButton(android.R.string.ok, object: DialogSheet.OnPositiveClickListener {
58-
override fun onClick(v: View?) {
59-
// Your action
60-
}
61-
})
62-
.setNegativeButton(android.R.string.cancel, object: DialogSheet.OnNegativeClickListener {
63-
override fun onClick(v: View?) {
64-
// Your action
65-
}
66-
})
67-
.setNeutralButton("Neutral", null)
57+
.setPositiveButton(android.R.string.ok) {
58+
// Your action
59+
}
60+
.setNegativeButton(android.R.string.cancel) {
61+
// Your action
62+
}
63+
.setNeutralButton("Neutral")
6864
.setRoundedCorners(false) // Default value is true
6965
.setBackgroundColor(Color.BLACK) // Your custom background color
7066
.setButtonsColorRes(R.color.colorAccent) // You can use dialogSheetAccent style attribute instead

0 commit comments

Comments
 (0)