I am working on an application in which i am getting a map in full screen and also action bar on the top. In action bar i have also included Navigation drawer. Everything is working fine but the Button is not getting displayed onto the MapView.
If I remove the navigation drawer functionality, the buttons are getting displayed. But my requirement is like i should be able to display the button on the bar as well as the Navigation bar.
The snippets are:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.mobile.android.ui.MapActivity"
tools:ignore="MergeRootFrame" >
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="List"
android:layout_marginRight="20dip"
android:layout_marginTop="20dip"
android:layout_marginLeft="20dip"
android:layout_gravity="left|top" />
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<fragment android:id="@+id/navigation_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:name="com.mobile.android.ui.NavigationDrawerFragment" />
</android.support.v4.widget.DrawerLayout>
</FrameLayout>