https://kotlinlang.org logo
#compose-wear
Title
# compose-wear
d

Dmitry Kroz

01/17/2022, 10:49 PM
Hello! Is there equivalent for CircularProgressLayout available in Compose for Wear OS? Thank you!
b

barat

01/18/2022, 6:49 AM
I just using circular indicator from compose.material.
Copy code
CircularProgressIndicator
If you need some progress animation in CurcularProgressIndicator, then use animateFloatAsState
Copy code
animatedProgress by animateFloatAsState(targetValue = your value, animationSpec = ProgressIndicatorDefaults.ProgressAnimationSpec)
CurcularProgressIndicator(
   progress = animatedProgress,
)
👍 1
🦜 1
j

John Nichol

01/18/2022, 8:00 AM
We are working on progress indicators for Wear OS at the moment, should be in the next couple of releases
👍 2
👍🏽 1
c

Chris Sinco [G]

01/22/2022, 6:39 AM
In the meantime, it’s pretty simple to build a custom one if you need. You could even just copy the source from AOSP since most of the code is in one file (~100 lines I think)
6 Views