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
Getting started with Kotlin and Android
Search
Lucas Albuquerque
July 28, 2016
Programming
1
160
Getting started with Kotlin and Android
A quick step-by-step on how to get started with Kotlin and Android
Lucas Albuquerque
July 28, 2016
Tweet
Share
More Decks by Lucas Albuquerque
See All by Lucas Albuquerque
Functional Programming on Android: is it possible?
lalbuquerque
0
50
DARK : dagger2-anko-rx-kotlin
lalbuquerque
1
440
Otto - An Android Event Bus
lalbuquerque
0
130
TDC 2015 - Testes de Unidade com Robolectric
lalbuquerque
0
40
Other Decks in Programming
See All in Programming
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
430
A New Era of Testing
mannodermaus
2
510
オートマトン学習しろ / Do automata learning
makenowjust
3
130
Lessons by WebAssembly app in production on CDN Edge Computing Service
tetsuharuohzeki
0
210
ドメイン駆動設計を実践するために必要なもの
bikisuke
4
330
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
390
Jakarta EE meets AI
ivargrimstad
0
390
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
660
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
200
仮想ファイルシステムを導入して開発環境のストレージ課題を解消する
segadevtech
2
550
LangChainの現在とv0.3にむけて
os1ma
4
930
Perl 5 OOP機構30年史 - Perl 5's OOP Mechanism over the past 30 years
moznion
0
340
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
58k
Design by the Numbers
sachag
277
19k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
YesSQL, Process and Tooling at Scale
rocio
167
14k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
89
16k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Fireside Chat
paigeccino
31
2.9k
Intergalactic Javascript Robots from Outer Space
tanoku
268
26k
The Pragmatic Product Professional
lauravandoore
31
6.2k
Large-scale JavaScript Application Architecture
addyosmani
508
110k
Building a Scalable Design System with Sketch
lauravandoore
459
32k
Transcript
Getting started with Kotlin and Android
Lucas Albuquerque - Developer @ M4U - Android specialist Github:
https://github.com/lalbuquerque Linkedin: https://br.linkedin.com/in/lucasalbuquerque Twitter: @lucas_albq - Organizer @ Kotlin Rio Meetup - Functional Programming enthusiast
Index • Configuring the IDE / Plugin • Creating and
configuring project • Giving birth to the first KT class • Introducing KotlinX • Lambdas first looking • Extension functions • First class functions • Applying the knowledge
Configuring the IDE / Plugin
Preferences > Plugins > “kotlin” > Search in repositories >
Install
Creating and configuring project
None
None
None
getting-started/build.gradle
getting-started/app/build.gradle
Giving birth to the first KT class
getting-started/app/src/…/MainActivity.java
getting-started/app/src/…/MainActivity.java
getting-started/app/src/…/MainActivity.kt
Introducing KotlinX
getting-started/app/…/res/layout/activity_main.xml
getting-started/app/src/…/MainActivity.kt
Lambdas first looking
getting-started/app/src/…/MainActivity.kt
getting-started/app/src/…/MainActivity.kt :(
Extension functions
getting-started/app/src/…/extension/Toast.kt
getting-started/app/src/…/MainActivity.kt :D
First class functions
getting-started/app/src/…/MainActivity.kt Named parameters :D
getting-started/app/src/…/MainActivity.kt
Applying the knowledge
getting-started/app/src/…/UsersActivity.kt
getting-started/app/src/…/entity/User.kt
getting-started/app/src/…/UsersActivity.kt
getting-started/app/src/…/ui/adapter/UserListAdapter.kt
getting-started/app/src/…/res/layout/user_item.xml
getting-started/app/src/…/ui/adapter/UserListAdapter.kt
getting-started/app/src/…/ui/adapter/UserListAdapter.kt
getting-started/app/src/…/ui/adapter/UserListAdapter.kt
getting-started/app/src/…/UsersActivity.kt
Reference • https://kotlinlang.org/ • Android Development with Kotlin — Jake
Wharton • http://antonioleiva.com/kotlin-android-developers/ • https://kotlinlang.slack.com/
None
https://github.com/lalbuquerque/getting- started-w-kotlin-android
None