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
0
63
Exploring Kotlin + Anko
Brief Introduction to Kotlin & Anko, a replacement to XML views used in Android.
Rakshak R.Hegde
September 03, 2016
Tweet
Share
More Decks by Rakshak R.Hegde
See All by Rakshak R.Hegde
Android Workshop
rakshakhegde
0
64
Other Decks in Programming
See All in Programming
Honoをフロントエンドで使う 3つのやり方
yusukebe
4
2.1k
知られざるDMMデータエンジニアの生態 〜かつてツチノコと呼ばれし者〜
takaha4k
4
1.3k
ISUCON14公式反省会LT: 社内ISUCONの話
astj
PRO
0
180
Linux && Docker 研修/Linux && Docker training
forrep
23
4.5k
個人アプリを2年ぶりにアプデしたから褒めて / I just updated my personal app, praise me!
lovee
0
340
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
自分ひとりから始められる生産性向上の取り組み #でぃーぷらすオオサカ
irof
8
2.6k
Introduction to kotlinx.rpc
arawn
0
630
Kubernetes History Inspector(KHI)を触ってみた
bells17
0
200
ASP. NET CoreにおけるWebAPIの最新情報
tomokusaba
0
360
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
200
『GO』アプリ バックエンドサーバのコスト削減
mot_techtalk
0
130
Featured
See All Featured
Site-Speed That Sticks
csswizardry
3
370
Done Done
chrislema
182
16k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Music & Morning Musume
bryan
46
6.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
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