Hi,

i need to have the default selection color (orange), here is my code

<Button android:id="@+id/login"

                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left"
                android:background="@drawable/login_background"
                android:text="Login"




                />



login_background.xml


 <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>

    <item android:state_focused="true" android:state_pressed="true"
android:drawable="@drawable/enter_button_pressed" />
<item android:state_focused="true" android:state_pressed="false"
         android:color="?"              // this should be default color

         />

    <item android:state_focused="false" android:state_pressed="true"
android:drawable="@drawable/enter_button_pressed" />

    <item android:drawable="@drawable/enter_button" />
</selector>


///////////////

can i set just color on focus or i must need to put another image in
focused section?
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to