Join Slack
Powered by
How to specify the max of a LinearProgressIndicato...
# compose
p
Pablo
07/03/2024, 2:54 PM
How to specify the max of a LinearProgressIndicator ? can't find it in the documentation. I need to specify that max is 50... should be a property called max like before compose, but is not in the documentation.
s
Stylianos Gakis
07/03/2024, 2:56 PM
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]ogressIndicator&ss=androidx%2Fplatform%2Fframeworks%2Fsupport
c
Chrimaeon
07/03/2024, 2:56 PM
calculate it yourself. the
progress
value is as float between 0 and 1
https://developer.android.com/develop/ui/compose/components/progress#api
p
Pablo
07/03/2024, 2:59 PM
yep, wow, thank you 🤦♂️
4
Views
Open in Slack
Previous
Next