How to change android indeterminate ProgressBar color?

To get a ProgressBar in the default theme that is to be used on white/light back ground, use one of the inverse styles: ProgressBar style="@android:style/Widget.ProgressBar. Inverse"/> If you're looking for a specific color, you'll have to roll your own drawables by following the instructions provided by CommonsWare.

To get a ProgressBar in the default theme that is to be used on white/light back ground, use one of the inverse styles: This will usually give you a black on transparent ProgressBar, but some OS installs use custom assets. If you're looking for a specific color, you'll have to roll your own drawables by following the instructions provided by CommonsWare.

Nice and simple. Thx. – dhaag23 Nov 24 '10 at 21:07 This doesn't appear to be a device-agnostic solution.

On my LG Optimus 2X Speed, an indeterminate ProgressBar is still always black, while on a HTC Desire HD with CyanogenMod for 2.3.3, it is always red. – Paul Lammertsma Apr 6 at 15:47 @Paul - Yes, you are correct. Many device manufactures customize the themes, and the default theme can change between Android versions.

I'll correct the text above – Anm in LA Apr 20 at 15:26.

Step #1: Copy drawable/progress_indeterminate_horizontal. Xml from your SDK's resources into your project. Step #2: Copy drawable-hdpi/progressbar_indeterminate* from your SDK's resources into your project.

Step #3: Copy drawable-mdpi/progressbar_indeterminate* from your SDK's resources into your project. Step #4: Modify the PNG files to look the way you want. Step #5: Modify the progress_indeterminate_horizontal.

Xml to point to your PNG files (versus the standard ones). Step #6: Use @drawable/progress_indeterminate_horizontal for the indeterminateDrawable value.

Thanks for your explanations! The component I'm using is the indeterminate one but not horizontal (a circle). It works anyway with the good files, but movement is not very smooth!

I tried with a linear interpolator, but it didn't do the thing! What a mess for only one color! I stay with that for the moment!

– mwa Apr 15 '10 at 15:04 Whoops, sorry, I was thinking the horizontal one. The same principle holds, but you probably need different resources from the SDK, instead of the ones I list above. – CommonsWare Apr 15 '10 at 15:27 No problem!

Thanks for your help ;) – mwa Apr 16 '10 at 7:33 1 Anyone know what resources are needed for the circle progress bar? --edit-- progress_medium_white. Xml, and then @drawable/spinner_white_48 – b-ryce Apr 18 at 21:28.

I make sample project and post in in my blog. Please, look at. hrupin.com/2011/09/21/how-to-make-custom... Hope, it help you.

Actually all you need to do (for both cirle and bar) is create an xml file in drawable as shown below...... progress_spinner_001 points to whatever image you want to animate and duration ... how long you want to display each frame for....... and set your android:indeterminateDrawable= filename_in_drawable.... ps you may need to resize the progressbar to show as desired.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions