Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Exploring Kotlin + Anko
Search
Rakshak R.Hegde
September 03, 2016
Programming
69
0
Share
Exploring Kotlin + Anko
Brief Introduction to Kotlin & Anko, a replacement to XML views used in Android.
Rakshak R.Hegde
September 03, 2016
More Decks by Rakshak R.Hegde
See All by Rakshak R.Hegde
Android Workshop
rakshakhegde
0
70
Other Decks in Programming
See All in Programming
[BalkanRuby 2026] Drop your app/services!
palkan
3
680
AI時代になぜ書くのか
mutsumix
0
450
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
530
CSC307 Lecture 17
javiergs
PRO
0
240
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
0
100
LLM Plugin for Node-REDの利用方法と開発について
404background
0
110
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
320
TSKaigi 2026 TypeScriptバックエンドのオブザーバビリティ戦略 — Datadog × NestJSの実践
taiseiyamamotoan
1
190
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
1.8k
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
150
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
170
GitHub Copilot CLIのいいところ
htkym
2
1.1k
Featured
See All Featured
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
530
Joys of Absence: A Defence of Solitary Play
codingconduct
1
370
Prompt Engineering for Job Search
mfonobong
0
320
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Building Applications with DynamoDB
mza
96
7k
The Pragmatic Product Professional
lauravandoore
37
7.3k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The Spectacular Lies of Maps
axbom
PRO
1
770
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
460
How to Talk to Developers About Accessibility
jct
2
210
Transcript
Exploring Kotlin + Anko Alternative to booaring repetitive XML Views
@rakshakhegde @blrdroid
Anko... Wut? verticalLayout { val name = editText() button("Say Hello")
{ onClick { toast("Hello, ${name.text}!") } } }
What I’ll cover, hopefully :) 1. Kotlin & Anko 2.
How to use Anko in Activity 3. Makin’ it modular - AnkoComponents 4. How Anko works - Extension funcs & Lambdas
But First...
Kotlin + Any? = ❤ kotlinlang.org
1. Set. Up. > New Project in Android Studio >
Kotlin Plugin > Configure Kotlin ⌘⌥A > Summon Anko > Install DSL Preview Plugin > sudo rm -rf / # fo shitzengiggles
Show me code, bro 2. Using Anko
Handy Tools in Android Studio - Convert Java code to
Kotlin - Convert XML to Anko
Pick n Choose, Runtime Configs - Screen Size - Density
- Orientation - Right to Left languages/locales - API Qualifiers - doIfSdk / doFromSdk
What next…? > kotlinlang.org > Kotlin Koans/Tutorials > Google “anko
kotlin” > giyf.com
I wanna talk about... ➔ AnkoComponents vs XML ➔ Styles
& Themes ➔ Paint & Performance ➔ Kotlin Delegates ➔ All types of drawables - Bitmap, 9-Patch, LayerList, ColorStateList, Shape Drawable, Selectors, Color Drawable, VectorDrawable ➔ Accessibility - Screen Reader ➔ AnimatedVectorDrawable ➔ Dieting Apps - Lean Apks ➔ Flow + Mortar
(@/+/git)rakshakhegde