My applications UI is built using the Android Support Library, but there is currently no AppCompat version of the (intederminate) progressbar, which my app really needs.
Material Components Library
You can use the LinearProgressIndicator
with the android:indeterminate="true"
attribute:
You can also use different colors using:
with:
- @color/...
- @color/....
- @color/....
You can also use the CircularProgressIndicator
component to have a circular progress indicator:
Note: It requires at least the version 1.3.0-alpha04
AppCompat
You can use a ProgressBar
with an AppCompat style.
Just add this in your layout:
If you would like an Horizontal progress bar use:
They follow the official material guidelines.