title: Android: how can I repeat image several times in drawable bitmap resource?
body: <p>I have RelativeLayout and ImageView widget like this</p>
  
  <pre><code>&lt;ImageView android:id="@+id/ImgUp"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" 
      android:background="@drawable/piggy" /&gt;
  </code></pre>
  
  <p>and a drawable resource like this</p>
  
  <pre><code>&lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android"
      android:src="@drawable/sample" /&gt;
  </code></pre>
  
  <p>How can I repeat the same image a number of calculated repetition of times? (For example 4 times)</p>