You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app_bar_main.xml 3.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. xmlns:fab="http://schemas.android.com/apk/res-auto"
  8. android:fitsSystemWindows="true"
  9. tools:context=".ui.activities.MainActivity">
  10. <android.support.design.widget.AppBarLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:theme="@style/AppTheme.AppBarOverlay">
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:background="?attr/colorPrimary"
  19. app:popupTheme="@style/AppTheme.PopupOverlay" />
  20. </android.support.design.widget.AppBarLayout>
  21. <include layout="@layout/content_main" />
  22. <com.github.clans.fab.FloatingActionMenu
  23. android:id="@+id/fab"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:layout_alignParentBottom="true"
  27. fab:menu_fab_size="normal"
  28. fab:menu_showShadow="true"
  29. fab:menu_shadowColor="#66000000"
  30. fab:menu_shadowRadius="4dp"
  31. fab:menu_shadowXOffset="1dp"
  32. fab:menu_shadowYOffset="3dp"
  33. fab:menu_colorNormal="#DA4336"
  34. fab:menu_colorPressed="#E75043"
  35. fab:menu_colorRipple="#99FFFFFF"
  36. fab:menu_animationDelayPerItem="50"
  37. fab:menu_buttonSpacing="0dp"
  38. fab:menu_labels_margin="0dp"
  39. fab:menu_labels_showAnimation="@anim/fab_slide_in_from_right"
  40. fab:menu_labels_hideAnimation="@anim/fab_slide_out_to_right"
  41. fab:menu_labels_paddingRight="8dp"
  42. fab:menu_labels_paddingBottom="4dp"
  43. fab:menu_labels_padding="8dp"
  44. fab:menu_labels_textColor="#FFFFFF"
  45. fab:menu_labels_textSize="14sp"
  46. fab:menu_labels_cornerRadius="3dp"
  47. fab:menu_labels_colorNormal="#333333"
  48. fab:menu_labels_colorPressed="#444444"
  49. fab:menu_labels_colorRipple="#66FFFFFF"
  50. fab:menu_labels_showShadow="true"
  51. fab:menu_labels_singleLine="false"
  52. fab:menu_labels_ellipsize="none"
  53. fab:menu_labels_maxLines="-1"
  54. fab:menu_labels_position="left"
  55. fab:menu_openDirection="up"
  56. fab:menu_backgroundColor="@android:color/transparent"
  57. fab:menu_fab_label="@string/stop_add"
  58. app:menu_icon="@drawable/ic_add_white_24dp">
  59. <com.github.clans.fab.FloatingActionButton
  60. android:id="@+id/fab_item_add_map"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:src="@drawable/ic_map_white_24dp"
  64. fab:fab_size="mini"
  65. fab:fab_label="@string/stop_add_map" />
  66. <com.github.clans.fab.FloatingActionButton
  67. android:id="@+id/fab_item_add_list"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:src="@drawable/ic_dehaze_white_24dp"
  71. fab:fab_size="mini"
  72. fab:fab_label="@string/stop_add_list" />
  73. </com.github.clans.fab.FloatingActionMenu>
  74. </android.support.design.widget.CoordinatorLayout>