Skip to content

Commit 4fcb3f6

Browse files
author
pisalcoding
committed
2 parents 42c1f0f + fb067dc commit 4fcb3f6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,29 @@ dependencies {
2020
}
2121
```
2222

23-
> Step 3: Show an alert dialog
23+
> Step 3: Show an alert dialog from your activity or fragment
2424
25+
### Simple
2526
```kotlin
2627
Alerter.success()
2728
.withTitle("Success")
2829
.withMessage("Congratulations!")
30+
.show(supportFragmentManager, "Tag")
31+
```
32+
33+
### More customization
34+
```kotlin
35+
Alerter.info()
36+
.withTitle("Tips")
37+
.withMessage("Look away from your screens every 20 minutes.")
2938
.setIconDrawable(
3039
ResourcesCompat.getDrawable(resources, drawable.round_check_circle_24, theme)
3140
)
3241
.setTimeoutMillis(4000)
3342
.setOnDismissListener {
3443
// Do something after dialog is dismissed
3544
}
36-
.show(supportFragmentManager, "Alerter.info")
45+
.show(supportFragmentManager, "Tag")
3746
```
3847

3948

0 commit comments

Comments
 (0)