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        xmlns:app="http://schemas.android.com/apk/res-auto">
 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
20        <android.support.design.widget.FloatingActionButton
21            android:id="@+id/fab"
22            android:layout_width="wrap_content"
23            android:layout_height="wrap_content"
24            android:layout_alignParentBottom="true"
25            android:layout_alignParentEnd="true"
26            android:layout_gravity="end|bottom"
27            android:layout_margin="16dp"
28            android:contentDescription="@string/action_unfix_from_location"
29            android:src="?attr/icon_directions"
30            app:backgroundTint="?colorPrimary"
31            app:tint="@color/white"
32            android:layout_alignParentRight="true" />
33    </RelativeLayout>
34</layout>