When uninstalling an android application, or do some configuration, there will show such a horizontal progress bar, like following picture:
It's not the same style like @android:style/Widget.ProgressBar.Horizontal
.
How to use it in my own application?
Just add a STYLE line and your progress becomes horizontal:
<ProgressBar style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/progress" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:max="100" android:progress="45"/>
It is Widget.ProgressBar.Horizontal
on my phone, if I set android:indeterminate="true"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With