1<layout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:app="http://schemas.android.com/apk/res-auto"
3 xmlns:tools="http://schemas.android.com/tools">
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 android:layout_below="@id/toolbar">
22
23
24 <org.osmdroid.views.MapView
25 android:id="@+id/map"
26 android:layout_width="match_parent"
27 android:layout_height="match_parent" />
28
29 <TextView
30 android:id="@+id/openstreetmap_credit"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_gravity="bottom|start"
34 android:layout_margin="4dp"
35 android:text="@string/openstreetmap_credit"
36 android:background="@color/white50"
37 android:paddingLeft="4dp"
38 android:paddingRight="4dp"
39 app:elevation="4dp" />
40
41 <android.support.design.widget.FloatingActionButton
42 android:id="@+id/fab"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_above="@+id/button_bar"
46 android:layout_alignParentEnd="true"
47 android:layout_alignParentRight="true"
48 android:layout_gravity="end|bottom"
49 android:layout_margin="16dp"
50 app:elevation="4dp"
51 android:contentDescription="@string/action_unfix_from_location"
52 android:src="?attr/icon_gps_fixed"
53 app:backgroundTint="?colorPrimary" />
54
55 </android.support.design.widget.CoordinatorLayout>
56
57 <LinearLayout
58 android:id="@+id/button_bar"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_alignParentLeft="true"
62 android:layout_alignParentRight="true"
63 android:layout_alignParentBottom="true"
64 tools:ignore="RtlHardcoded">
65
66
67 <Button
68 android:id="@+id/cancel_button"
69 style="@style/Widget.Conversations.Button.Borderless"
70 android:layout_width="0dp"
71 android:layout_height="wrap_content"
72 android:layout_weight="1"
73 android:text="@string/cancel" />
74
75 <View
76 android:layout_width="1dp"
77 android:layout_height="fill_parent"
78 android:layout_marginTop="7dp"
79 android:layout_marginBottom="7dp"
80 android:background="?attr/divider" />
81
82 <Button
83 android:id="@+id/share_button"
84 style="@style/Widget.Conversations.Button.Borderless"
85 android:layout_width="0dp"
86 android:layout_height="wrap_content"
87 android:layout_weight="1"
88 android:text="@string/share" />
89 </LinearLayout>
90
91 </RelativeLayout>
92</layout>