Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Exploring Kotlin + Anko
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Rakshak R.Hegde
September 03, 2016
Programming
80
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
76
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(JP)
sodainc
1
40k
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
300
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
170
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
210
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.7k
ActionController meets Protocol Buffers
sorah
1
780
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.4k
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
190
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
910
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
300
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
14
11k
Inertia Rails: The One-Person Framework with React & Friends
skryukov
0
380
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
970
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
420
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
A Tale of Four Properties
chriscoyier
163
24k
Fireside Chat
paigeccino
43
4.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
The SEO identity crisis: Don't let AI make you average
varn
0
630
Design in an AI World
tapps
1
380
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