I have a problem with overlapping views in android appication
<p>I have a navbar included in a linearlayout with another relativelayout as below. This relative layout forms the whole screen while the navbar is on top. I have added a button in the navbar and a listview which becomesvisible when the button is clicked. The problem is: when the button is clicked I am expecting the list to be displayed on top of the below screen contents while it is actually pushing down the contents of the screen and is not overlapping. I have tried relative layouts and framelayouts as in all the examples but with no luck. Please help:.</p>

<pre><code>&lt;LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentTop="true" android:background="@drawable/xxx"&gt;

&lt;include android:id="@+id/navbarx" layout="@layout/navbar" /&gt;&lt;&lt;&lt;-- has the button and the listview for it.
&lt;RelativeLayout android:layout_width="fill_parent"
android:layout_weight="1" android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_gravity="top|fill"&gt;

&lt;ListView android:id="@android:id/list"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:background="#00ffffff" android:layout_marginLeft="14dp"
android:layout_marginRight="5dp" android:layout_marginTop="10dp"
android:layout_marginBottom="40dp" android:drawSelectorOnTop="true"
android:divider="#00ffffff" android:listSelector="@drawable/yyy"
android:scrollbarThumbVertical="@drawable/vertical_slider"
android:headerDividersEnabled="false" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true"/&gt;

&lt;/RelativeLayout&gt;

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