title: Making FrameLayout transparent
body: <p>I want my activity to appear like a big form of dialog, something which is transparent say a quarter on all the four sides and the middle part is solid where I can place the views.
  I thought using Frame Layout would be the answer by placing a frame layout inside another,but I am unable to make the first one transparent.</p>
  
  <p><strong>My XML file:-</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#00000000" &gt;
  
      &lt;FrameLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="50dp"
          android:layout_marginLeft="75dp"
          android:layout_marginRight="75dp"
          android:layout_marginTop="50dp" &gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
  
              &lt;Button
                  android:id="@+id/button1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:layout_centerVertical="true"
                  android:text="Search" /&gt;
  
              &lt;EditText
                  android:id="@+id/editText1"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_above="@+id/button1"
                  android:layout_alignParentLeft="true"
                  android:layout_marginBottom="30dp"
                  android:gravity="center"
                  android:hint="Enter Movie Name!" /&gt;
  
              &lt;ProgressBar
                  android:id="@+id/progressBar1"
                  style="?android:attr/progressBarStyleLarge"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignBottom="@+id/editText1"
                  android:layout_centerHorizontal="true" /&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/FrameLayout&gt;
  
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Its not working. Any Ideas?</p>