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 <androidx.coordinatorlayout.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 <com.google.android.material.floatingactionbutton.FloatingActionButton
30 android:id="@+id/fab"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_above="@+id/button_bar"
34 android:layout_alignParentEnd="true"
35 android:layout_alignParentRight="true"
36 android:layout_gravity="end|bottom"
37 android:layout_margin="16dp"
38 app:elevation="4dp"
39 android:contentDescription="@string/action_unfix_from_location"
40 android:src="?attr/icon_gps_fixed"
41 app:backgroundTint="?colorPrimary" />
42
43 </androidx.coordinatorlayout.widget.CoordinatorLayout>
44
45 <LinearLayout
46 android:id="@+id/button_bar"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:layout_alignParentLeft="true"
50 android:layout_alignParentRight="true"
51 android:layout_alignParentBottom="true"
52 tools:ignore="RtlHardcoded">
53
54
55 <Button
56 android:id="@+id/cancel_button"
57 style="@style/Widget.Conversations.Button.Borderless"
58 android:layout_width="0dp"
59 android:layout_height="wrap_content"
60 android:layout_weight="1"
61 android:text="@string/cancel" />
62
63 <View
64 android:layout_width="1dp"
65 android:layout_height="fill_parent"
66 android:layout_marginTop="7dp"
67 android:layout_marginBottom="7dp"
68 android:background="?attr/divider" />
69
70 <Button
71 android:id="@+id/share_button"
72 style="@style/Widget.Conversations.Button.Borderless"
73 android:layout_width="0dp"
74 android:layout_height="wrap_content"
75 android:layout_weight="1"
76 android:text="@string/share" />
77 </LinearLayout>
78
79 </RelativeLayout>
80</layout>