The default progress wheel on Android doesn't display well when the background is white, it's barely visible. How can I fix this?
If you look at the built in styles.xml file and poke around the platform's built in drawables, it turns out the solution is pretty simple. You can use the "style" attribute to use the inverse progress bar:
<ProgressBar android:id="@+id/progress_bar" android:layout_width="40dip" android:layout_height="40dip" android:padding="6dp" android:indeterminate="true" style="?android:attr/progressBarStyleInverse" />
Be sure if you have a white background to set the theme in your manifest to @android:style/Theme.Light. This provides resources for all of the widgets to go with a light background.
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