1<layout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools">
3
4
5 <RelativeLayout
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 tools:context=".ui.ShareLocationActivity">
9
10 <include
11 android:id="@+id/toolbar"
12 layout="@layout/toolbar"/>
13
14 <android.support.design.widget.CoordinatorLayout
15
16 android:id="@+id/snackbar_coordinator"
17 android:layout_width="match_parent"
18 android:layout_height="match_parent"
19 android:layout_above="@+id/button_bar" >
20
21 <android.support.design.widget.FloatingActionButton
22 android:id="@+id/fab"
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:layout_above="@+id/button_bar"
26 android:layout_alignParentEnd="true"
27 android:layout_gravity="end|bottom"
28 android:layout_margin="16dp"
29 android:contentDescription="@string/action_unfix_from_location"
30 android:src="?attr/icon_gps_fixed"/>
31
32
33 <org.osmdroid.views.MapView
34 android:id="@+id/map"
35 android:layout_width="match_parent"
36 android:layout_height="match_parent"/>
37
38 </android.support.design.widget.CoordinatorLayout>
39
40 <LinearLayout
41 android:id="@+id/button_bar"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:layout_alignParentBottom="true"
45 android:layout_alignParentLeft="true"
46 android:layout_alignParentRight="true"
47 tools:ignore="RtlHardcoded">
48
49
50 <Button
51 android:id="@+id/cancel_button"
52 style="@style/Widget.Conversations.Button.Borderless"
53 android:layout_width="0dp"
54 android:layout_height="wrap_content"
55 android:layout_weight="1"
56 android:text="@string/cancel"/>
57
58 <View
59 android:layout_width="1dp"
60 android:layout_height="fill_parent"
61 android:layout_marginBottom="7dp"
62 android:layout_marginTop="7dp"
63 android:background="?attr/divider"/>
64
65 <Button
66 android:id="@+id/share_button"
67 style="@style/Widget.Conversations.Button.Borderless"
68 android:layout_width="0dp"
69 android:layout_height="wrap_content"
70 android:layout_weight="1"
71 android:text="@string/share"/>
72 </LinearLayout>
73
74 </RelativeLayout>
75</layout>