https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-wear
  • y

    yschimke

    08/05/2022, 3:56 PM
    @Yingding Wang sounds like your issue is unrelated, but I ended up implementing this to let me test various config options for ScalingLazyColumn.
  • t

    Tolriq

    08/06/2022, 3:58 PM
    Restarted my old Macbook pro to play with compose wear during holidays and with EE A 9 75% of the time when I start the app there’s a dialog with Process wear is running Do you want to kill the process. And even checking don’t ask again does nothing and it comes back.
    j
    m
    • 3
    • 6
  • r

    Radoslaw Juszczyk

    08/07/2022, 5:16 AM
    hey guys, Is there any equivalent of
    BottomSheetScaffold
    for wear? Can I safely import both:
    androidx.wear.compose:compose-material
    and
    androidx.compose.material:material
    to my project and use only
    BottomSheetScaffold
    from the non wear one??
    y
    y
    +2
    • 5
    • 15
  • k

    Kseniia Shumelchyk

    08/08/2022, 10:19 AM
    Performance of Wear OS apps built with Compose is the topic that come up here time to time, so want to share performance guide that we recently published: https://developer.android.com/training/wearables/compose/performance on how to configure, develop and test performance in your apps, including useful adb commands from @Steve Bower [G] for baseline profiles 📊
  • t

    Tolriq

    08/09/2022, 11:57 AM
    How do you guys deals with older watches with bottom chin like the moto 360? I think that I should just disable support for the in Play Console but I still fear the Play Store nice Wear review team reject the app as they might test it even with the excludes.
    b
    y
    k
    • 4
    • 8
  • j

    John Nichol

    08/11/2022, 12:41 PM
    Compose for Wear OS 1.1.0-alpha03 was released yesterday. Release notes are here. We have added a new
    Outlined
    style for `Chip`s and `Button`s and we have added overloads to allow developers to override
    Button
    shapes. We have also corrected an issue with excess padding in the
    ToggleChip
    this will leave more space for the label slot - as a result if you have screenshot tests for ToggleChip`s these may need updating.
  • t

    Tgo1014

    08/23/2022, 12:48 PM
    Is there already a standard way to add haptics to
    LazyColumns
    ? My workaround solution that I implemented in the past don't work very well
    y
    j
    +2
    • 5
    • 12
  • a

    Afzal Najam

    08/24/2022, 8:00 PM
    ScalingLazyColumn
    could use
    animateItemPlacement
    Modifier support. https://issuetracker.google.com/issues/241957435
    j
    • 2
    • 1
  • j

    John Nichol

    08/25/2022, 2:45 PM
    Compose for Wear OS 1.0.1 and 1.1.0-alpha04 were released yesterday. Both contain a bug fix for an issue with
    ScalingLazyColumn
    not completing initialisation if the list has 2 items. But the change we would like to draw your attention to is an accessibility driven change the default theme colors in 1.1.0-alpha04 [2183442] as this will have a UI impact and might cause some screenshot tests to need to be regenerated.
  • y

    yschimke

    08/26/2022, 5:25 PM
    If it's useful for anyone else, I'm taking a stab at using Paparazzi for A11y testing. https://github.com/google/horologist/pull/524
    • 1
    • 1
  • y

    yschimke

    09/01/2022, 8:23 AM
    If anyone has a confirmed need for paging-compose with ScalingLazyColumn, let me know. Say infinite or paged results (email inbox, messages) I've a prototype of this for Horologist (draft PR) but it's not clear we expect this to be a typical use case. So any signal from community could make the case. The integration is very simple and straight forward.
  • f

    Finlandia

    09/02/2022, 10:36 AM
    Hi, is it possible to use entry/exit animations using Compose for Wear OS?
    j
    • 2
    • 3
  • v

    Vivian Thayil

    09/06/2022, 5:52 PM
    Hi, I'm wondering if there's a way to disable the swipeToDismiss action for a fitness screen, similar to the workout in progress screen on the google fit app. I intend to add a button to do the same, but swiping doesn't really work for the UI I'm planning
    a
    y
    • 3
    • 17
  • a

    Ataul Munim

    09/06/2022, 11:04 PM
    Is anyone developing on something other than a silicon based Mac & using the Wear emulator?
    j
    y
    y
    • 4
    • 8
  • j

    John Nichol

    09/08/2022, 11:10 AM
    Compose for WearOS 1.0.2 and 1.1.0-alpha05 released last night. Just small change this time. Both contain a bug fix for the z-order of the items in the Scaffold so that the indicators (Position and Pagination) sit on top of the Vignette. The alpha also includes a small a11y/talkback improvement for the Slider.
  • y

    yschimke

    09/12/2022, 4:28 PM
    We've added Jankstats, Macrobenchmark startup tests, Baseline profile, and some custom Trace metrics to the media-sample in Horologist. If you want to test out the real impact of these on performance or testing, please ping me, happy to discuss. https://github.com/google/horologist/pull/565
    StartupBenchmark_startup[compilation=BaselineProfile]
    timeToFullDisplayMs   min 1,468.5,   median 1,522.9,   max 1,585.2
    timeToInitialDisplayMs   min   650.4,   median   678.5,   max   762.3
    
    StartupBenchmark_startup[compilation=None]
    timeToFullDisplayMs   min 3,618.2,   median 3,845.0,   max 4,448.7
    timeToInitialDisplayMs   min   806.8,   median   901.9,   max 1,069.0
  • g

    Gustavo Pagani

    09/13/2022, 12:47 PM
    Hey, we've recently added a
    SectionedList
    component to Horologist that should help building screens divided in sections and controlling the sections states individually. There is a video of the sample screen in this PR. I hope that you find it helpful.
    b
    • 2
    • 5
  • m

    Markchristopherng

    09/13/2022, 10:43 PM
    Hi, I recently wrote an article about our company moving to Jetpack Compose, there is also a large section on how implemented Wear Compose - https://proandroiddev.com/auspost-delivers-on-jetpack-compose-892f609774fd
    y
    • 2
    • 1
  • t

    Tolriq

    09/16/2022, 10:25 AM
    Sorry not fully wear compose related but discovering https://issuetracker.google.com/issues/235538840 the hard way. Can someone confirm that removing the
    <data android:scheme="wear" android:host="*" />
    Will not have impact on previous Android version and still work with Wear OS 1 (That I still support for now)?
    y
    k
    • 3
    • 10
  • t

    Tolriq

    09/17/2022, 8:13 AM
    Is there any plans to have the PositionIndicator highlight configurable? I'm facing a small issue due to rounding leading to double state update leading to blinking of the indicator. (Like a volume bar that send the volume to a remote device then receive the updated volume that is a little different and update the state).
    j
    s
    • 3
    • 19
  • t

    Tolriq

    09/18/2022, 10:28 AM
    Another one about Curved text / Timetext it seems they do not support the shadow part of the text styles that can be useful to increase a little contrast over images. My other workaround would have been to use a dark background on the timetext but I can't figure out what I could put in
    startCurvedContent
    and
    endCurvedContent
    to add a round borders on each side like a curved chip.
    j
    s
    • 3
    • 6
  • t

    Tolriq

    09/19/2022, 4:31 PM
    And one last, I was not able to configure an emulator for Wear 3 to provide a 3rd multi function button. Is this possible?
    k
    a
    • 3
    • 10
  • y

    yschimke

    09/20/2022, 4:13 PM
    This just landed, so should be in Paparazzi 1.1
  • j

    John Nichol

    09/22/2022, 12:52 PM
    Compose for Wear OS 1.1.0-alpha06 was released yesterday (2022-09-21). The main addition in the release is
    Modifier.scrollAway()
    that can be used to scroll
    TimeText
    away when scrollable content is scrolled up. This is based on the Horologist
    Modifier.fadeAway()
    , big thanks to @yschimke for that.
    y
    • 2
    • 1
  • t

    Tolriq

    09/30/2022, 5:56 AM
    Not strictly compose related but I was hoping that migration to Compose would have fixed it. I get ANR on the watches
    android.hardware.display.DisplayManagerGlobal.getDisplayInfo
    Broadcast of Intent { act=android.intent.action.SCREEN_OFF }
    Thread
    "main" tid=1 Blocked
    at android.hardware.display.DisplayManagerGlobal.getDisplayInfo (DisplayManagerGlobal.java:146)
      at android.view.Display.updateDisplayInfoLocked (Display.java:1251)
      at android.view.Display.getState (Display.java:1206)
      at android.view.ViewRootImpl$1.onDisplayChanged (ViewRootImpl.java:1604)
      at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage (DisplayManagerGlobal.java:767)
      at android.os.Handler.dispatchMessage (Handler.java:106)
      at android.os.Looper.loop (Looper.java:246)
      at android.app.ActivityThread.main (ActivityThread.java:7690)
      at java.lang.reflect.Method.invoke (Native method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:593)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:995)
    Since I do not register that intent myself any idea what does and how to prevent it?
    y
    t
    • 3
    • 5
  • a

    andrew

    10/05/2022, 3:24 PM
    Cannot wait to get the Pixel Watch for compose wearos dev 😄
    b
    • 2
    • 4
  • j

    John Nichol

    10/05/2022, 6:00 PM
    The Compose for Wear OS team are please to announce the release of 1.1.0-alpha07. There are a couple of items that I would like to call out for attention. Firstly we have added animated
    Checkbox
    ,
    Switch
    and
    RadioButton
    toggle controls. Secondly we have added a new experimental Placeholder API which gives coordinated Placeholder, Shimmer and Wipe-Off effects. More in the thread.
  • a

    andrew

    10/06/2022, 10:24 PM
    I preordered the Pixel Watch, cannot come soon enough 😮😮😮
  • a

    andrew

    10/06/2022, 10:26 PM
    I used to have a moto360 sport, which I gave away to my younger sister, cannot wait for the new one
  • a

    andrew

    10/06/2022, 10:27 PM
    Cannot wait to put compose for wear though it's paces, definitely going to be making tiles as well for the smart home app (STRATIS)
    y
    y
    • 3
    • 9
Powered by Linen
Title
a

andrew

10/06/2022, 10:27 PM
Cannot wait to put compose for wear though it's paces, definitely going to be making tiles as well for the smart home app (STRATIS)
y

Yingding Wang

10/09/2022, 8:56 PM
me too. Ordered a pixel pro 7 and will get a pixel watch LTE as a gift. 🙂 There is no more excuse for not making apps with compose wear.
a

andrew

10/09/2022, 10:53 PM
Yeah, and I try to use emulators as little as possible, so having official reference HW again is nice
y

yschimke

10/10/2022, 8:24 AM
@andrew I expect you might still use emulators a bit. Debug builds on devices are quite slow. Wear Compose performance is on par with Views, but only when using optimised builds and baseline profiles. Please remember this when you first try it out with a debug build on device. I believe in all cases we've seen good Wear Compose performance, but it doesn't tend to be the first experience.
a

andrew

10/10/2022, 4:10 PM
Yeah, I never file perf issues on debug builds, I kinda hold that expectation
More akin to an embedded device spec profile
But we also interface with BLE and NFC locks, so having actual HW to test mobile keys with is AWESOME
Pixel Watch arrives Saturday 😄
@yschimke you were not kidding about debug builds being slow! Or at least scrolling haha 😆
y

yschimke

10/17/2022, 5:58 AM
Nope, at @louiscad suggestion IIRC, we added a warning to the ComposeAdvanced project to explain it in the time text.
View count: 9