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