Black spinner in progressbar

by fr4gus » Fri, 20 Aug 2010 02:17:35 GMT


Sponsored Links
 Hi all,

I want to use a small spinner for an indeterminate progress bar. So I
added this to my screen:

                <ProgressBar
                        android:id="@+android:id/ConnectionProgress"
                style="?android:attr/progressBarStyleSmallTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />

But it shows a white spinner. I looked at SDK folder, and I saw there
is also a black spinner. Is it possible to indicate to user the black
spinner instead of white spinner?.

I want an "elegant" form of using that spinner that already exists in
Android, but looks I may have to copy the image to my proyect and
create the animation, and set it in "indeterminate drawable"

Any ideas?

Thanks in advance for any help.

--



Black spinner in progressbar

by Gon莽alo Ferreira » Fri, 27 Aug 2010 02:52:20 GMT


 Check out here:

 http://developer.android.com/reference/android/R.attr.html #progressBarStyleInverse

Just change the style attributes for one of those in the link.
The attributes with the suffix Inverse are black spinners, usually for
a light background.




--


Sponsored Links


Black spinner in progressbar

by Gon莽alo Ferreira » Fri, 27 Aug 2010 02:52:25 GMT


 Check out here.

 http://developer.android.com/reference/android/R.attr.html #progressBarStyleInverse

Just change the style for one of those in that link.
The attributes with the suffix Inverse are black spinners, usually for
light backgrounds.




--



Black spinner in progressbar

by fr4gus » Tue, 31 Aug 2010 00:27:36 GMT


 Thanks! :)





--



Black spinner in progressbar

by Gon莽alo Ferreira » Tue, 07 Sep 2010 19:14:19 GMT


 Just an update relating to this subject.

The color of the the spinners depends on the theme you're using.
So when you use a Black theme (default) the Inverse Spinners will be
white and vice-versa, not exactly the way i said before.







--



Other Threads

1. Hardware Video Plane/Layer Support

We are considering rendering video into video planes/layers supported
by the OMAP3430. Does Android have infrastructure in place for
supporting hardware video planes separate from the graphics plane?
I've looked around SurfaceFlinger and believe the answer is "no", but
wanted to double-check. If anyone has done something similar we'd love
to hear about your experience and suggestions.

Thanks,
Andrew
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: 

2. Is it safe to Install HTC/Dream/G1 builds created from git repo?

That's not currently possible.

JBQ




--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: 

3. searchs in Android

4. Camera Settings

5. Problem with Serversocket

6. How to get MediaController positioned at a required location?

7. Download the Android Developers