Intro
Anko is a Kotlin library which makes Android application development faster and easier. It makes your code clean and easy to read, and lets you forget about rough edges of the Android SDK for Java.
https://github.com/Kotlin/anko
What is Anko
- DSL (Domain Specific Language)
- Library written in Kotlin
- Faster, Cleaner Android Development
- UI Builder
- Convenience utilities :
- Intent and service wrappers
- Async call handling
- SQLite
Why use Anko
- Type safe, Null safe - Compile time validation
- Layout & Logic at one place
- No XML parsing
- Easily reusable
- Concise
Why Anko performs better ?
- inflate view from XML files
- create view objects
- find view by id with findViewById
Default Android UI
inflate view from XML files- create view objects
find view by id with findViewById
Anko DSL
XML
Anko DSL
Anko Layout
Anko Commons
Java
Intent
Anko Intent
Anko Commons
Anko Toast
Java
Toast
What else
- Anko SQLite
- Anko Coroutines
Setting up Kotlin and Anko
- Android Studio / Intellij IDEA
- Plugin -> Browse Repositories, search Kotlin and install it.
Project Repository :
https://github.com/KongkowITMedan/anko-kotlin-todo
Thank You
Anko
By zigic88
Anko
- 469