I tried your XML, and it seems fine.  Maybe try a regular image that isn't 
a nine-patch?



On Monday, January 14, 2013 2:52:05 PM UTC-6, dashman wrote:
>
> got a button defined as
>
>     <Button
>         android:id="@+id/button1"
>         android:background="@drawable/dialpad_selector"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="Hello There" />
>
>
> a dialpad_selector.xml as
>
> <?xml version="1.0" encoding="utf-8"?>
> <selector xmlns:android="http://schemas.android.com/apk/res/android";>
>     <item android:state_pressed="true"
>           android:drawable="@drawable/dialpad" /> <!-- pressed -->
>     <item android:state_focused="true"
>           android:drawable="@drawable/dialpad" /> <!-- focused -->
>     <item android:state_hovered="true"
>           android:drawable="@drawable/dialpad" /> <!-- hovered -->
>     <item android:drawable="@drawable/dialpad" /> <!-- default -->
> </selector>
>
> drawable dialpad is a 9-patch image
>
> not working!
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to