Fliesen Bilder in android-mit Bildansicht in XML

Ich versuche ein Bild auf den hintergrund zu Kacheln, bis der hintergrund gefüllt ist.

Mein aktuelle code:

<?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>

Aber das macht einfach das Bild abdeckt (nicht gefliest) von unten nach oben, aber NICHT von Links nach rechts. Was soll ich tun?

Edit: Versucht die XML-version:

<bitmap
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:tileMode="repeat"
    android:src="@drawable/cartoonclouds" />

Den main.xml finden konnte, die cartoonclouds im SELBEN Ordner wie die XML-Datei, aber konnte Sie nicht finden, die XML-Datei.

InformationsquelleAutor | 2012-01-17

Schreibe einen Kommentar