У меня есть RelativeLayout в качестве заголовка в Activity, и я хочу, чтобы он был 9.png для рисования в качестве фона.Вот что можно нарисовать:
![enter image description here](https://i.stack.imgur.com/tn61v.png)
Что я получу:
![enter image description here](https://i.stack.imgur.com/P7AhP.jpg)
Как видите, есть дополнительный интервал.
Здесь я использую цвет RGB в качестве фона (и как я хочу, чтобы он выглядел с 9patch):
![enter image description here](https://i.stack.imgur.com/UuNF7.jpg)
Это я делаю что-то смешное или это нормально для9 патч, чтобы выглядеть так?
ОБНОВЛЕНО КОДОМ
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/relativeTop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
<--THIS IS IT-->
android:background="@drawable/cap">
<--THIS IS IT-->
<Button
android:id="@+id/btnSearchMainReset"
android:text="@string/btnSearchMainReset_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/relativeTop">
<RelativeLayout
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:layout_below="@id/relativeTop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF">
<Button
android:id="@+id/btnSearchMainSearch"
android:text="@string/btnSearchMainSearch_text"
android:textSize="20sp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerHorizontal="true"
android:width="200dp"
/>
<RelativeLayout
android:id="@+id/relativeMain"
android:layout_below="@id/btnSearchMainSearch"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<-- MULTIPLE VIEWS HERE -->
</RelativeLayout>
<Button
android:id="@+id/btnSearchMainSearchLow"
android:text="@string/btnSearchMainSearch_text"
android:textSize="20sp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@@id/relativeMain"
android:width="200dp"
/>
</RelativeLayout>
</ScrollView>
</RelativeLayout>