Search code examples
androidnine-patch

Bugs in Ninepatch graphics display


i try to use nine patch for a layout's background. However, some indicators in the nine patch is displayed. See this link-> http://dl.dropbox.com/u/78582670/NinePatchError.png

How do i remove the indicators??

my nested layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFEFEFE"
android:orientation="horizontal" >

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="0.5"
    android:text="@string/test1" />

<FrameLayout
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:background="@drawable/menu_bg2">

</FrameLayout>

Thanks you.


Solution

  • Have you looked at the nine patch image itself? You should be able to open it with any graphics editing application. My feeling is that the 9 patch image is actually the problem here and not your layout. To fix this, should you confirm the image contains the errors, just rerun the slicing in the 9patch tool.