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 android:fitsSystemWindows="true"
9 tools:context=".ui.ShareLocationActivity">
10
11 <com.google.android.material.appbar.AppBarLayout
12 android:id="@+id/app_bar_layout"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content">
15
16 <com.google.android.material.appbar.MaterialToolbar
17 android:id="@+id/toolbar"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:minHeight="?attr/actionBarSize" />
21
22 </com.google.android.material.appbar.AppBarLayout>
23
24 <androidx.coordinatorlayout.widget.CoordinatorLayout
25
26 android:id="@+id/snackbar_coordinator"
27 android:layout_width="match_parent"
28 android:layout_height="match_parent"
29 android:layout_above="@+id/button_bar"
30 android:layout_below="@id/app_bar_layout">
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 <com.google.android.material.floatingactionbutton.FloatingActionButton
39 android:id="@+id/fab"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_above="@+id/button_bar"
43 android:layout_alignParentEnd="true"
44 android:layout_gravity="end|bottom"
45 android:layout_margin="16dp"
46 android:contentDescription="@string/action_unfix_from_location"
47 android:src="@drawable/ic_gps_fixed_24dp" />
48
49 </androidx.coordinatorlayout.widget.CoordinatorLayout>
50
51 <RelativeLayout
52 android:id="@+id/button_bar"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_alignParentStart="true"
56 android:layout_alignParentEnd="true"
57 android:layout_alignParentBottom="true"
58 android:paddingHorizontal="16dp"
59 android:paddingVertical="8dp">
60
61 <Button
62 android:id="@+id/cancel_button"
63 style="@style/Widget.Material3.Button.TextButton"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_alignParentStart="true"
67 android:layout_centerInParent="true"
68 android:text="@string/cancel" />
69
70 <Button
71 android:id="@+id/share_button"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_alignParentEnd="true"
75 android:layout_centerInParent="true"
76 android:text="@string/share" />
77 </RelativeLayout>
78
79 </RelativeLayout>
80</layout>