Pooh3Mobi / KotlinAlertDialog

Domain Specific Language Alert Dialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KotlinAlertDialog

Domain Specific Language Alert Dialog

    alert {
        title    { + "this is title" }
        message  { + "this is message" }
        positive { + "agree!" +
                {

                    Snackbar.make(view, "you chose positive action", Snackbar.LENGTH_LONG)
                            .setAction("Action", null).show()

                }
        }
        negative { + "deny!" +
                {

                    Snackbar.make(view, "you chose negative action", Snackbar.LENGTH_LONG)
                            .setAction("Action", null).show()

                }
        }
    }.build(this).show()

About

Domain Specific Language Alert Dialog


Languages

Language:Kotlin 100.0%