https://kotlinlang.org logo
#compose
Title
# compose
a

Alejandro Rios

07/13/2020, 11:58 AM
Hi guys, does anyone has an example on how animate a
LinearProgressIndicator
?, by animate i mean to fill the progress to certain value, thanks!
t

tonnyl

07/13/2020, 12:03 PM
this repo may be worth checking out.
m

matvei

07/13/2020, 12:04 PM
In general you can just utilize
animate
API here
Copy code
@Composable fun MyAnimatedProgress(progress: Float) {
   val animatedValue = animate(progress)
   LinearProgressIndicator(animatedValue)
}
👆 1
😍 1
a

Alejandro Rios

07/13/2020, 12:11 PM
Thanks @tonnyl, @matvei
2 Views