Hi,
I have nine patch image which i wud like to apply as background with selectors.
Every thing looks ok in emulator but in device borders are clipped.
I tried may flavours of image but did not help
btw, I am applying this bg for buttons
Here is my selector
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/btn_green_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/btn_focussed"/>
<item android:drawable="@drawable/btn_green"/>
</selector>
I have nine patch image which i wud like to apply as background with selectors.
Every thing looks ok in emulator but in device borders are clipped.
I tried may flavours of image but did not help
btw, I am applying this bg for buttons
Here is my selector
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/btn_green_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/btn_focussed"/>
<item android:drawable="@drawable/btn_green"/>
</selector>