[SOLVED] I added this to MainActivity XML file:
<FrameLayout
android:id="@+id/place_map_here"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
<FrameLayout
android:id="@+id/bugfixview"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@android:color/transparent"/>
and where I changed the fragments:
mapFragment = new FragmentMapView();
android.app.FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.add(R.id.place_map_here, mapFragment, "map");
ft.commit();
Edit: Just realized that I do not use the MapFragment xml file.(older build did sorry)
I´ve changed my Fragment to a MapFragment and now my NavigationDrawer slides in behind the MapFragment :( Code:
MapFragmant xml ( removed code)
MainActivity xml. Here is my drawer declared
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<FrameLayout
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</FrameLayout>
<ListView
android:id="@+id/drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#333"
android:choiceMode="singleChoice"/>
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>
I hope this is the information you need to be awesome like always and help noobs like me :)