activity_share_location.xml 3.1 KB

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