January 2018
Intermediate to advanced
434 pages
14h 1m
English
Anko makes some common Android development stuff extremely easy, such as toasts, snackbars, and dialogs. Usually, showing these views takes a lot of code. Let's see how it is just a matter of a few lines of easy code with Anko:
Alert dialog: A popup that appears on top of your view, commonly used for alerts:
alert("Hi, I'm Moss", "This, Jen, is the internet") { yesButton { toast("Oh…") } noButton {toast("Well...") }}.show()
alert(Appcompat, "Hello, Jen.").show()
val dialog = progressDialog(message = "Please stand by", title = "Fetching ...
Read now
Unlock full access