Skip to content

Instantly share code, notes, and snippets.

@pieman2201
Created June 27, 2019 08:54
Show Gist options
  • Select an option

  • Save pieman2201/20192510ff22e86b42e2436fe68f75ae to your computer and use it in GitHub Desktop.

Select an option

Save pieman2201/20192510ff22e86b42e2436fe68f75ae to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/drawer_layout"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/layout"
android:fitsSystemWindows="false"
>
<com.mapbox.mapboxsdk.maps.MapView
android:clipToPadding="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mapView"
android:fitsSystemWindows="false"
/>
<androidx.constraintlayout.widget.Guideline
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/navBarTop"
app:layout_constraintGuide_end="50dp"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/postFab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/new_post"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/navBarTop"
app:rippleColor="@color/primaryColor"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/locateFab"
app:backgroundTint="@color/locationColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/find_location"
app:layout_constraintBottom_toTopOf="@+id/postFab"
app:layout_constraintEnd_toEndOf="parent"
app:rippleColor="@color/primaryColor"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?selectableItemBackgroundBorderless"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:src="@drawable/menu"
android:tint="@color/secondaryColor"
android:fitsSystemWindows="true"
android:layout_margin="16dp"
android:id="@+id/navigation_button"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.navigation.NavigationView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:id="@+id/navigation_drawer"
/>
</androidx.drawerlayout.widget.DrawerLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment