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. How can I download a file from the internet?

I want my application to download an update file e.g.
http://www.mysite.com/updates/data.txt

Also, what do I need to add to the manifest?

--~--~---------~--~----~------------~-------~--~----~

2. Best/safest place to do cleanups(e.g. connection release) at Application level

Hi,

What is the best/safest place to do cleanups at application level?

I am creating a single instance of DefaultHttpClient when the
application starts up. Rest of the activities will be ustilizing same
instance of client. Now I want to release all resources associated
with it( or in other words make the following call
client.getConnectionManager().shutdown()) only one time i.e. when the
application terminates and not on onPause because that will defeat my
purpose. so if I override onTerminate and onLowMemory methods and put
the connection release code in both methods will that ensure that my
cleanup code will definitely be called. The docs says onTerminate may
not get called in some cases..so will overriding onLowMemory ensure
that all cases get covered?

Please advise

Thanks
Vikas
--~--~---------~--~----~------------~-------~--~----~

3. Streaming Example?

4. Change color to another color in Drawable

5. Android P2P Options

6. ListView touch problem

7. can't get progressbar and drawing to work together