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
Backend Driven UI на Anko Layouts
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Mukhamed Issa
May 23, 2019
Technology
50
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Backend Driven UI на Anko Layouts
Mukhamed Issa
May 23, 2019
More Decks by Mukhamed Issa
See All by Mukhamed Issa
Coroutines in Kotlin
mukhamedissa
0
70
Why Kotlin
mukhamedissa
0
59
Other Decks in Technology
See All in Technology
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
170
Browser Spec: Testing Hotwire with Ruby
takahashim
1
120
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
パッチ更新でterraform initが落ちた日
grimoh
1
140
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
380
re:Invent初参加で変わったこと、2回目にやってみたいこと(JAWS-UG彩の国埼玉 #12)
mhrtech
2
220
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
300
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
440
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
100
DWH の限界突破! AI エージェント向け爆速リアルタイムデータ基盤 ClickHouse
jozono
1
470
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
130
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
Leo the Paperboy
mayatellez
10
2.4k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
The Invisible Side of Design
smashingmag
301
52k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Transcript
Backend Driven UI на Anko Layouts и бэкендом на Kotlin
Иса Мухамед
Backend-Driven UI • Описание UI на бэке • Оперативное изменение
интерфейса • Добавление фич прямо с бэка • Обработка данных с бэка на бэке
Use case: добавить новые типы SMS-продуктов в приложение • Добавить
обработку продуктов в приложении • Release в Google Play (incremental) • Ждать пока пользователи обновятся 1-2 недели
In short…
UI Backend • На Kotlin • Мобильные разработчики могут поддерживать
• Shared code между бэком и приложениями • Можно использовать и для iOS
Меньше слов, больше кода
None
None
Существующие типы компонентов • Linear component • Text component •
Input component • Button component • Image component • View component
None
Application UI • Традиционные способы построения интерфейса • XML •
Programatically
XML Prog.
Anko Layout DSL • Разработан JetBrains • Читабельный и аккуратный
код • Можно всю логику UI перенести в отдельный класс • Инициализация быстрее • Поддержка корутинов
Основная задумка
ViewComponentFactory
Инициализация компонентов • Инициализация основных атрибутов • Text, hint, etc.
• Инициализация стилей • backgroundColor, resource, etc. • Параметры layout’a • Ширина, высота, ориентация, etc • Optional • Обработка нажатий
LinearComponent
LinearComponent
Проблемы • Обработка action’ов • Кастомизация
Обработка action’ов
Кастомизация стилей • Создание predefined стилей в приложении • Отправка
названия ресурса с бэка
Дальнейшая разработка • Constraints • Complex components • List support
• Формы с бэка
Вопросы?