背景がいっぱいになるまで、背景に画像を並べて表示しようとしています。
私の現在のコードは次のとおりです。
<?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">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/cartoonclouds"
android:contentDescription="@string/desc"
android:tileMode="repeat" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
</RelativeLayout>
ただし、これにより、画像が下から上に (タイル化されず) カバーされるだけで、左から右にはなりません。私は何をすべきですか?
編集:XMLバージョンを試みました:
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:tileMode="repeat"
android:src="@drawable/cartoonclouds" />
main.xml は、その XML ファイルと同じフォルダーで cartoonclouds を見つけることができましたが、その XML ファイルを見つけることができませんでした。