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
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
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
180
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
460
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
340
SONY CISC-NEWS NWS-1750 + NWB-225 フレームバッファの NetBSD/news68k ドライバ実装 / OSC2026Hiroshima
tsutsui
0
160
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
320
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
430
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
310
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
280
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
100
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
300
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.3k
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
720
sira's awesome portfolio website redesign presentation
elsirapls
0
430
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Un-Boring Meetings
codingconduct
0
430
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
420
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Leo the Paperboy
mayatellez
10
2.3k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
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