December 2017
Intermediate to advanced
260 pages
7h 34m
English
We love displaying toast! For displaying validation messages to the user, flashing an error message, and sometimes for debugging too.
And we know how many times we have missed using .show() methods. Every time we pass context setting up a duration. How about having a simple function that takes care of all of this. Yes! With Kotlin this is also true. Anko commons has functions displaying toast in an easy way.
With Anko you can display toast, for example:
import org.jetbrains.anko.toast toast(exception.message.toString())
Read now
Unlock full access