Newer
Older
NemophilaClient / app / src / main / res / layout / activity_maps.xml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:id="@+id/drawer_layout"
  9. tools:context=".MapsActivity">
  10.  
  11. <FrameLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:orientation="vertical">
  15.  
  16. <fragment
  17. android:id="@+id/navHostFragment"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:name="androidx.navigation.fragment.NavHostFragment"
  21. app:defaultNavHost="true"
  22. app:navGraph="@navigation/navigation" />
  23.  
  24. <androidx.appcompat.widget.Toolbar
  25. android:id="@+id/toolbar"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:background="#00000000"/>
  29.  
  30. <SearchView
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginTop="5dp"
  34. android:layout_marginLeft="50dp"
  35. android:layout_marginRight="50dp"
  36. android:layout_gravity="center_horizontal"
  37. />
  38.  
  39. </FrameLayout>
  40.  
  41. <com.google.android.material.navigation.NavigationView
  42. android:id="@+id/navView"
  43. android:layout_width="wrap_content"
  44. android:layout_height="match_parent"
  45. android:layout_gravity="start"
  46. app:menu="@menu/navdrawer_menu" />
  47. </androidx.drawerlayout.widget.DrawerLayout>