Documente Academic
Documente Profesional
Documente Cultură
Budi Oktaviyan
Suryanto
<TextView
The Great DataBinding
android:id="@+id/tv_result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{viewModel.name}" />
tvResult.text = "Result"
No need findViewById or ViewInjection Anymore !
Courtesy by http://www.nick-asia.com/
THE LISTENER JOURNEY
btnMain.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(final View view) { Lovely Java (AGAIN)
// TODO coba godain janda sebelah rumah
}
});
btnMain.setOnClickListener {
TODO("Sederhana lebih seru gan")
}
Courtesy by http://www.nick-asia.com/
THE MAGIC OF with()
with(movie) {
val text = "$name on $year"
tvTitle.text = text
}
THE FABULOUS when() and for..range
async(UI) {
val users: Deferred<List<User>> = bg { getUsers() }
showUsers(users.await())
}
Coroutine in Action!
THEY ARE ALREADY USING KOTLIN
No Plugin Needed!
HOW DO YOU START ?
1. Learn Kotlin as Language secara
KAFFAH a.k.a Menyeluruh
2. Understanding about LAMBDA Expression
3. And Yeah FUNCTIONAL PROGRAMMING
4. Start Your Android Project with
Kotlin enabled
LETS CODE!