Я пытаюсь получить изображение фона на плитке до тех пор, пока фон не будет заполнен.
Мой текущий код:
<?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, но не смог найтиXML-файл.