Dear all:

1. About replace a theme to another:

My code:
if(theme_style==0)
{
     theme_style=1;
     setTheme(android.R.style.Theme_Light);
}
else (theme_style==2)
{
     theme_style=0;
     setTheme(android.R.style.Theme_Dark);
}

2. spinner selector location issue:

Mycode:

myselector.xml:

---------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>

 <selector xmlns:android="http://schemas.android.com/apk/res/android";
>

   <item android:state_first="true" android:drawable="@drawable/
arrow_f"  />
   <item android:state_last="true" android:drawable="@drawable/
arrow_l"/>
   <item android:state_middle="true" android:drawable="@drawable/
arrow_m"  />

 </selector>

---------------------------------------------------------------------------------------------------------

   <Spinner android:id="@+id/spinner"
        android:layout_width="182px"
            android:layout_height="32px"
            android:layout_alignTop ="@id/statusicon"
            android:layout_toRight="@id/statusicon"
            android:background="@drawable/b1test"
            android:layout_marginLeft="6px"
            android:spinnerSelector="@drawable/myselector"
  />

---------------------------------------------------------------------------------------------------------


this will let the png graph fill with the spinner

How can I do ?

I try use Android style "spinnerbox_arrows" , it work !!!

So I think I must add some attribute in my code.

But I don't what the attribute I must append.

May you give me a hand,please.

p.s. If I can see the decompiled files, that is wonderful thing for
me.

       But I know it is impossible : ) .....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to