1<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 tools:context=".ui.ShareLocationActivity">
6
7 <include layout="@layout/toolbar" />
8
9 <org.osmdroid.views.MapView android:id="@+id/map"
10 android:layout_width="match_parent"
11 android:layout_height="match_parent"
12 android:layout_above="@+id/button_bar"/>
13
14 <RelativeLayout
15 android:id="@+id/snackbar"
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:layout_marginTop="4dp"
19 android:layout_marginBottom="4dp"
20 android:layout_marginLeft="8dp"
21 android:layout_marginRight="8dp"
22 android:layout_above="@+id/button_bar"
23 android:background="@drawable/snackbar"
24 android:minHeight="48dp"
25 android:visibility="visible">
26
27 <TextView
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:layout_alignParentStart="true"
31 android:layout_centerVertical="true"
32 android:layout_toStartOf="@+id/snackbar_action"
33 android:paddingStart="24dp"
34 android:text="@string/location_disabled"
35 tools:ignore="RtlSymmetry"
36 android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark"/>
37 <TextView
38 android:id="@+id/snackbar_action"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:paddingBottom="16dp"
42 android:paddingLeft="24dp"
43 android:paddingRight="24dp"
44 android:paddingTop="16dp"
45 android:textAllCaps="true"
46 android:textStyle="bold"
47 android:text="@string/enable"
48 android:layout_alignParentTop="true"
49 android:layout_alignParentEnd="true"
50 android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark" />
51 </RelativeLayout>
52
53 <LinearLayout
54 android:id="@+id/button_bar"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_alignParentBottom="true"
58 android:layout_alignParentLeft="true"
59 android:layout_alignParentRight="true"
60 tools:ignore="RtlHardcoded">
61
62 <Button
63 android:id="@+id/cancel_button"
64 style="?android:attr/borderlessButtonStyle"
65 android:layout_width="0dp"
66 android:layout_height="wrap_content"
67 android:layout_weight="1"
68 android:text="@string/cancel"
69 android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
70
71 <View
72 android:layout_width="1dp"
73 android:layout_height="match_parent"
74 android:layout_marginBottom="7dp"
75 android:layout_marginTop="7dp"
76 android:background="@color/accent"/>
77
78 <Button
79 android:id="@+id/share_button"
80 style="?android:attr/borderlessButtonStyle"
81 android:layout_width="0dp"
82 android:layout_height="wrap_content"
83 android:layout_weight="1"
84 android:text="@string/share_with"
85 android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
86 </LinearLayout>
87
88 <android.support.design.widget.FloatingActionButton
89 android:id="@+id/fab"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:layout_gravity="end|bottom"
93 android:src="?attr/icon_gps_fixed"
94 android:layout_alignParentEnd="true"
95 android:layout_above="@+id/button_bar"
96 android:contentDescription="@string/action_unfix_from_location"
97 android:layout_margin="16dp" />
98
99</RelativeLayout>