Refer to this article

http://tech-droid.blogspot.com/2010/03/custom-buttons-on-android.html

Thanks and Regards,
Kumar Bibek

On Apr 9, 6:37 am, Ozymandias <[email protected]> wrote:
> Apparently the problem is the list of items function as a switch, so
> having the default state first made it ignore the rest. My bad.
>
> On Apr 8, 6:27 pm, Ozymandias <[email protected]> wrote:
>
> > Using this as the android:src I get no change on press except to the
> > background which turns orange as usual:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> >  <selector xmlns:android="http://schemas.android.com/apk/res/android";>
> >     <item android:drawable="@drawable/map_toolbar_details" />
> >     <item android:state_focused="true" android:state_pressed="false"
> > android:drawable="@drawable/map_toolbar_details_selected" />
> >     <item android:state_focused="true" android:state_pressed="true"
> > android:drawable="@drawable/map_toolbar_details_selected" />
> >     <item android:state_focused="false" android:state_pressed="true"
> > android:drawable="@drawable/map_toolbar_details_selected" />
> >  </selector>
>
> > Using it for the android:background I get no change at all when I
> > press the button.
>
> > Am I doing something wrong?

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to