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. Preventing input

I am trying to allow the user to enter a price (e.g. 3.99), so a
number with a max of 2 decimal places.  I am not quite sure how to
pull this off.

I've setup a KeyListener, but the OnKey event that it kicks off allows
listeners to get a chance to respond before the target view.  As a
result, I don't really know what the string in the EditText will end
up looking like.  For instance, I don't know whether the user entered
a digit into the beginning of the string or tacked it on at the end.

Is there an event that kicks off after the EditText has processed
input and then I can evaluate the string?

I got the following, but it suffers from the issue I described above.

        EditText txtDecimal = (EditText) findViewById
(R.id.txtDecimal);
        txtDecimal.setOnKeyListener(new OnKeyListener() {
            public boolean onKey(View v, int keyCode, KeyEvent event)
{

                        EditText txtDecimal = (EditText) findViewById
(R.id.txtDecimal);
                        String temp = txtDecimal.getText().toString();

                        int posDot = temp.indexOf(".");
                        if (posDot <= 0) return false;

                        if (temp.length() - posDot > 2)
                                return true;

              return false;
            }
        });

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

2. IPSec support for Android

Hi,

Are the kernel modules for IPsec loaded by default in the released
phones out there? Is there a way to check for this on a  phone?


Thanks,
George
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Unofficial SDK 1.5 with Media Files

4. Question about onSensorChanged Listener

5. free vs. paid - what is better revenue model?

6. how to let my shared library, libhello.so, work

7. Solution To close Application in G1 or even Emulator