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
barat
01/18/2022, 6:53 AM
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)