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:tools="http://schemas.android.com/tools">
 4
 5    <RelativeLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        tools:context=".ui.ShowLocationActivity">
 9
10        <include
11            android:id="@+id/toolbar"
12            layout="@layout/toolbar"/>
13
14        <org.osmdroid.views.MapView
15            android:id="@+id/map"
16            android:layout_width="fill_parent"
17            android:layout_height="fill_parent"/>
18
19        <android.support.design.widget.FloatingActionButton
20            android:id="@+id/fab"
21            android:layout_width="wrap_content"
22            android:layout_height="wrap_content"
23            android:layout_alignParentBottom="true"
24            android:layout_alignParentEnd="true"
25            android:layout_gravity="end|bottom"
26            android:layout_margin="16dp"
27            android:contentDescription="@string/action_unfix_from_location"
28            android:src="?attr/icon_directions"
29            android:tint="@color/white"/>
30    </RelativeLayout>
31</layout>