• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps nine patch image clipped from borders

rhl4ttr

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

Attachments

  • btn_green_1.png
    btn_green_1.png
    838 bytes · Views: 73
  • btn_green.91.png
    btn_green.91.png
    929 bytes · Views: 65
Back
Top Bottom