9 패치가 늘어나고 이미지에서 어떤 영역이 늘어야하는지 지정해야합니다. 왜 당신은 당신의 그림을 반복하려고하지 않습니다. 그렇게 :
<xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/YourLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/backrepeat"
>
그런 다음 xml에서 backrepeat.xml이라고합니다
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/back"
android:tileMode="repeat" />