In Android how to display one view as overlay on top of another view?
<p>I have 2 views that takes the whole screen and I want to display both views at the same time. My layout looks like this:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"&gt;

    &lt;WebView 
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
    /&gt;

    &lt;org.example.myCustomView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
    /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Note that myCustomView uses onDraw ( this method last statement is invalidate()) to draw custom graphics. The problem I am getting that it only display myCustome view and webView is hidden. I tried to change the background color of mycustomView to transparent but this makes no difference.
I would also the abilty to make mycustomeView as overlay on webView or vice versa.</p>
