why do you use an XML template if it's the same picture for all states?
how did you create the nine patch?  Did you try it in an image view?

On Monday, January 14, 2013 3:52:05 PM UTC-5, 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 [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