【Android】レイアウトの背景に画像を繰り返し表示する。
backgroundSetting.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/background"
android:tileMode="repeat" />
drawableフォルダに背景のパターン設定を行うxmlファイルを作り上を記述
android:srcに繰り返し表示させたい画像を指定。
あとは下記のようにレイアウトの背景に設定するだけ。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/backgroundSetting"
android:orientation="vertical" >
</LinearLayout>