Android custom circular ProgressBar direction
I guess you're using an rtl language? You can force the progress bar to an ltr or clockwise direction by setting the layoutDirection
property on your ProgressBar
.
<ProgressBar
...
android:layoutDirection="ltr" />
By using latest versions of material design library, you can achieve this:
- in the layout with this attribute
app:indicatorDirectionCircular
- or programmatically with this method
setIndicatorDirection()
Refer here for more info.