1. Download our Official Android App: Forums for Android!

Apps nine patch image clipped from borders

Discussion in 'Android Development' started by rhl4ttr, Feb 22, 2011.

  1. rhl4ttr

    rhl4ttr Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Feb 22, 2011

    Feb 22, 2011
    1
    0
    5
    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>
     

    Attached Files:


    Advertisement

Share This Page

Loading...