activity_share_location.xml

 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
34
35            <org.osmdroid.views.MapView
36                android:id="@+id/map"
37                android:layout_width="match_parent"
38                android:layout_height="match_parent"/>
39
40            </android.support.design.widget.CoordinatorLayout>
41
42            <LinearLayout
43                android:id="@+id/button_bar"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:layout_alignParentBottom="true"
47                android:layout_alignParentLeft="true"
48                android:layout_alignParentRight="true"
49                tools:ignore="RtlHardcoded">
50
51
52                <Button
53                    android:id="@+id/cancel_button"
54                    style="@style/Widget.Conversations.Button.Borderless"
55                    android:layout_width="0dp"
56                    android:layout_height="wrap_content"
57                    android:layout_weight="1"
58                    android:text="@string/cancel"/>
59
60                <View
61                    android:layout_width="1dp"
62                    android:layout_height="fill_parent"
63                    android:layout_marginBottom="7dp"
64                    android:layout_marginTop="7dp"
65                    android:background="?attr/divider"/>
66
67                <Button
68                    android:id="@+id/share_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/share"/>
74            </LinearLayout>
75
76        </RelativeLayout>
77</layout>