File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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
2627Alerter .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
You can’t perform that action at this time.
0 commit comments