• 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
Feb 22, 2011
1
0
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: 43
  • btn_green.91.png
    btn_green.91.png
    929 bytes · Views: 31

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones