title: Tiling images in android with ImageView in XML
body: <p>I am trying to get an image on the background to tile until the background is full.</p>
  
  <p>My current code is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;ImageView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:src="@drawable/cartoonclouds"
      android:contentDescription="@string/desc"
      android:tileMode="repeat" /&gt;
    &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
      &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" /&gt;
    &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>However that just makes the image covering (not tiled) bottom to top, but NOT left to right. What should I be doing?</p>
  
  <p>Edit: Attempted the XML version:</p>
  
  <pre><code>&lt;bitmap
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:tileMode="repeat"
      android:src="@drawable/cartoonclouds" /&gt;
  </code></pre>
  
  <p>The main.xml could find the cartoonclouds in the SAME folder as that XML file, but could not find that XML file.</p>