Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. } else if (id == R.id.locatie) { fragment = fragLocatie;
  2. if(!sMapFragment.isAdded()) {
  3. sFragmentManager.beginTransaction().add(R.id.map, sMapFragment).commit();
  4. }else{sFragmentManager.beginTransaction().show(sMapFragment).commit();}
  5.  
  6. <?xml version="1.0" encoding="utf-8"?>
  7. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  8. android:layout_width="match_parent" android:layout_height="match_parent">
  9.  
  10. <LinearLayout
  11. android:orientation="vertical"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:layout_alignParentTop="true"
  15. android:layout_centerHorizontal="true">
  16.  
  17. <FrameLayout
  18. android:id="@+id/map"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"></FrameLayout>
  21.  
  22. </LinearLayout>
  23. </RelativeLayout>
  24.  
  25. <?xml version="1.0" encoding="utf-8"?>
  26. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  27. xmlns:app="http://schemas.android.com/apk/res-auto"
  28. xmlns:tools="http://schemas.android.com/tools"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:paddingBottom="@dimen/activity_vertical_margin"
  32. android:paddingLeft="@dimen/activity_horizontal_margin"
  33. android:paddingRight="@dimen/activity_horizontal_margin"
  34. android:paddingTop="@dimen/activity_vertical_margin"
  35. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  36. android:id="@+id/drawer_start"
  37. tools:context="groep2.project4.DrawerActivity"
  38. tools:showIn="@layout/app_bar_drawer"
  39. android:background="#7EC580"
  40. android:orientation="vertical">
  41.  
  42.  
  43.  
  44.  
  45. <FrameLayout
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:layout_weight="23">
  49.  
  50. </FrameLayout>
  51.  
  52. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement