activity_show_location.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3
 4    <RelativeLayout
 5        android:layout_width="match_parent"
 6        android:layout_height="match_parent"
 7        android:fitsSystemWindows="true">
 8
 9        <com.google.android.material.appbar.AppBarLayout
10            android:id="@+id/app_bar_layout"
11            android:layout_width="match_parent"
12            android:layout_height="wrap_content">
13
14            <com.google.android.material.appbar.MaterialToolbar
15                android:id="@+id/toolbar"
16                android:layout_width="match_parent"
17                android:layout_height="wrap_content"
18                android:minHeight="?attr/actionBarSize" />
19
20        </com.google.android.material.appbar.AppBarLayout>
21
22        <org.osmdroid.views.MapView
23            android:id="@+id/map"
24            android:layout_width="fill_parent"
25            android:layout_height="fill_parent"
26            android:layout_below="@id/app_bar_layout" />
27
28        <com.google.android.material.floatingactionbutton.FloatingActionButton
29            android:id="@+id/fab"
30            android:layout_width="wrap_content"
31            android:layout_height="wrap_content"
32            android:layout_alignParentEnd="true"
33            android:layout_alignParentBottom="true"
34            android:layout_gravity="end|bottom"
35            android:layout_margin="16dp"
36            android:contentDescription="@string/action_unfix_from_location"
37            android:src="@drawable/ic_directions_24dp" />
38    </RelativeLayout>
39</layout>