activity_show_location.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto"
 4    xmlns:tools="http://schemas.android.com/tools">
 5
 6    <RelativeLayout
 7        android:layout_width="match_parent"
 8        android:layout_height="match_parent"
 9        tools:context=".ui.ShowLocationActivity">
10
11        <include
12            android:id="@+id/toolbar"
13            layout="@layout/toolbar" />
14
15        <org.osmdroid.views.MapView
16            android:id="@+id/map"
17            android:layout_width="fill_parent"
18            android:layout_height="fill_parent"
19            android:layout_below="@id/toolbar" />
20
21        <com.google.android.material.floatingactionbutton.FloatingActionButton
22            android:id="@+id/fab"
23            android:layout_width="wrap_content"
24            android:layout_height="wrap_content"
25            android:layout_alignParentEnd="true"
26            android:layout_alignParentRight="true"
27            android:layout_alignParentBottom="true"
28            android:layout_gravity="end|bottom"
29            android:layout_margin="16dp"
30            android:contentDescription="@string/action_unfix_from_location"
31            android:src="?attr/icon_directions"
32            app:backgroundTint="?colorPrimary"
33            app:tint="@color/white" />
34    </RelativeLayout>
35</layout>