title: LinearLayout translucent (but not transparent)
body: <p>I would like a LinearLayout translucent (I don't mean transparent).
  I want to emulate a Dialog in my Activity. So I tried this:</p>
  
  <p>In Manifest: </p>
  
  <pre><code>android:theme="@android:style/Theme.Translucent"
  </code></pre>
  
  <p>In Activity onCreate:</p>
  
  <pre><code>LinearLayout MyLayout = (LinearLayout)findViewById(R.id.MyLayout);  
  MyLayout.setBackgroundColor(Color.BLACK); 
  MyLayout.getBackground().setAlpha(50);
  </code></pre>
  
  <p>But it doesn't work because I don't see the Home Desktop at all. Any idea?</p>
  
  <p>I also tried this in xml but it din't work either:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/MyLayout"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="#22FFFFFF"
     android:orientation="vertical" &gt;
  &lt;/LinearLayout&gt;
  </code></pre>