Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if (id == R.id.locatie) { fragment = fragLocatie;
- if(!sMapFragment.isAdded()) {
- sFragmentManager.beginTransaction().add(R.id.map, sMapFragment).commit();
- }else{sFragmentManager.beginTransaction().show(sMapFragment).commit();}
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent" android:layout_height="match_parent">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentTop="true"
- android:layout_centerHorizontal="true">
- <FrameLayout
- android:id="@+id/map"
- android:layout_width="match_parent"
- android:layout_height="match_parent"></FrameLayout>
- </LinearLayout>
- </RelativeLayout>
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- android:id="@+id/drawer_start"
- tools:context="groep2.project4.DrawerActivity"
- tools:showIn="@layout/app_bar_drawer"
- android:background="#7EC580"
- android:orientation="vertical">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="23">
- </FrameLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement