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
Compose - Wear&Widgets
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Max
May 27, 2022
Programming
86
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Compose - Wear&Widgets
Max
May 27, 2022
Transcript
30 slides
Compose Widgets & Wearables
None
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014 2015 2016 2017 Android Wear 2.0 (2.0, API 25 Nougat) Standalone Wear Apps Material Design
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014 2015 2016 2017 Android Wear 2.0 (2.0, API 25 Nougat) Standalone Wear Apps Material Design 2018 Wear OS (1.0, API 27 Oreo) Rebranding
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014 2015 2016 2017 Android Wear 2.0 (2.0, API 25 Nougat) Standalone Wear Apps Material Design 2018 Wear OS (1.0, API 27 Oreo) Rebranding 2019 Tiles (built-in)
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014 2015 2016 2017 Android Wear 2.0 (2.0, API 25 Nougat) Standalone Wear Apps Material Design 2018 Wear OS (1.0, API 27 Oreo) Rebranding 2019 Tiles (built-in) 2020 2021 Wear OS (3.0, API 27 Oreo) Fitbit Tizen Tiles API Emulator Pairing
История часов Android Wear (4.4W1, API 20) Android Releases Watch
Changes 2014 2015 2016 2017 Android Wear 2.0 (2.0, API 25 Nougat) Standalone Wear Apps Material Design 2018 Wear OS (1.0, API 27 Oreo) Rebranding 2019 Tiles (built-in) 2020 2021 Wear OS (3.0, API 27 Oreo) Fitbit Tizen Tiles API Emulator Pairing Wearable Compose Glance in Tiles 2022
Из чего состоит приложение для часов Overlay = Full app
• В целом похоже на обычное приложение • Может быть несколько экранов
Из чего состоит приложение для часов Complication ~ Виджет для
циферблата Noti fi cation - Уведомления
Из чего состоит приложение для часов Tile - один экран
в меню • По сути это сервис с разрешением и intent- fi lter BIND_TILE_PROVIDER • Ограниченный набор собственных View • API добавление в 2021
Артефакты Едрить их в корни “androidx.wear.compose:compose-material:1.0.0-beta02” “androidx.wear.compose:compose-foundation:1.0.0-beta02” “androidx.wear.compose:compose-navigation:1.0.0-beta02"
Buttons
Cards
Chips
Lists
Page indicators
Picker
Position indicator
Progress indicator
Sliders
Steppers
Toggle chips
Time text
Особенности • Можно использовать обычный compose • Лучше не смешивать
Material и Material for Wear • Существует аналог Accompanist - Horologist • Навигацию лучше осуществлять только на Activity
Widgets
Что же такое виджет • Использует особый вид View -
RemoteView • Запускается в удалённом процессе - AppWidgetHost • В режиме энергосбережения могут не обновляться данные
Улучшения в виджетах
Jetpack Glance androidx.glance:glance-appwidget:1.0.0-alpha03 • Улучшения для Android 12 включены •
Транслирует Composables в RemoteViews • Box, Row, Column, Text, Button, LazyColumn, Image, Spacer, GlanceModi fi er
Glance SizeMode
More Decks by Max
See All by Max
Android Dev Summit
sannedak
0
31
Android Versions
sannedak
0
78
Tech Talk - After Mobius
sannedak
0
37
Google I/O 2022 recap
sannedak
0
40
Compose Animations
sannedak
0
44
Jetpack Compose. Готов к продакшену?
sannedak
0
36
Jetpack Compose, READY FOR PRODUCTION?
sannedak
1
65
Jetpack Compose. Introduction
sannedak
0
43
Other Decks in Programming
See All in Programming
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
眠らない開発チームの作り方
biwakonbu
0
120
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
150
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
joyful-journey-spring-boot.pdf
hollycummins
0
120
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
220
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
200
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
Scaling GitHub
holman
464
140k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
650
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
Site-Speed That Sticks
csswizardry
13
1.6k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830