title: Overlapping Views in Android
body: <p>Is it possible to have overlapping views in Android? I would like to have an ImageView with a transparent png in the front and another view in the background.</p>
  
  <p>edit:</p>
  
  <p>This is what I have at the moment, the problem is that the image in the imageView is not transparent, the parts that should be transparent are just black.</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:orientation="vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/gallerylayout"
  &gt;
  &lt;Gallery android:id="@+id/overview"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      /&gt;
  
   &lt;ImageView android:id="@+id/navigmaske"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:src="@drawable/navigmask"
      /&gt; 
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>edit:</p>
  
  <p>I got it to work, it was a theme file from another programmer on the team.
  Just changed this</p>
  
  <pre><code>&lt;item name="android:background"&gt;#FF000000&lt;/item&gt;
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>&lt;item name="android:background"&gt;#00000000&lt;/item&gt;
  </code></pre>