activity_share_location.xml

 1<android.support.design.widget.CoordinatorLayout
 2    android:id="@+id/snackbarCoordinator"
 3    xmlns:android="http://schemas.android.com/apk/res/android"
 4    xmlns:tools="http://schemas.android.com/tools"
 5    android:layout_width="match_parent"
 6    android:layout_height="match_parent">
 7    <RelativeLayout
 8        android:layout_width="match_parent"
 9        android:layout_height="match_parent"
10        tools:context=".ui.ShareLocationActivity">
11
12        <include layout="@layout/toolbar" />
13
14        <org.osmdroid.views.MapView android:id="@+id/map"
15            android:layout_width="match_parent"
16            android:layout_height="match_parent"
17            android:layout_above="@+id/button_bar"/>
18
19        <LinearLayout
20            android:id="@+id/button_bar"
21            android:layout_width="wrap_content"
22            android:layout_height="wrap_content"
23            android:layout_alignParentBottom="true"
24            android:layout_alignParentLeft="true"
25            android:layout_alignParentRight="true"
26            tools:ignore="RtlHardcoded">
27
28            <Button
29                android:id="@+id/cancel_button"
30                style="?android:attr/borderlessButtonStyle"
31                android:layout_width="0dp"
32                android:layout_height="wrap_content"
33                android:layout_weight="1"
34                android:text="@string/cancel"
35                android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
36
37            <View
38                android:layout_width="1dp"
39                android:layout_height="match_parent"
40                android:layout_marginBottom="7dp"
41                android:layout_marginTop="7dp"
42                android:background="@color/accent"/>
43
44            <Button
45                android:id="@+id/share_button"
46                style="?android:attr/borderlessButtonStyle"
47                android:layout_width="0dp"
48                android:layout_height="wrap_content"
49                android:layout_weight="1"
50                android:text="@string/share_with"
51                android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
52        </LinearLayout>
53
54        <android.support.design.widget.FloatingActionButton
55            android:id="@+id/fab"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:layout_gravity="end|bottom"
59            android:src="?attr/icon_gps_fixed"
60            android:layout_alignParentEnd="true"
61            android:layout_above="@+id/button_bar"
62            android:contentDescription="@string/action_unfix_from_location"
63            android:layout_margin="16dp" />
64
65    </RelativeLayout>
66</android.support.design.widget.CoordinatorLayout>