fragment_line_menu.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical" android:layout_width="match_parent"
  4. xmlns:fab="http://schemas.android.com/apk/res-auto"
  5. android:layout_height="match_parent"
  6. android:clipChildren="false"
  7. android:background="@android:color/holo_green_light">
  8. <com.novaapps.floatingactionmenu.FloatingActionMenu
  9. android:id="@+id/fab_menu_line"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_marginBottom="16dp"
  13. android:layout_marginRight="16dp"
  14. android:layout_marginEnd="16dp">
  15. <!--First button as menu button-->
  16. <android.support.design.widget.FloatingActionButton
  17. android:id="@+id/fab_main"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:src="@drawable/ic_add_white_24dp"
  21. fab:fabSize="normal"
  22. fab:backgroundTint="@android:color/holo_red_light"/>
  23. <!-- Other button as menu items-->
  24. <android.support.design.widget.FloatingActionButton
  25. android:id="@+id/fab_random"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:contentDescription="Hello World1"
  29. fab:fabSize="mini"
  30. fab:backgroundTint="@android:color/holo_red_light" />
  31. <android.support.design.widget.FloatingActionButton
  32. android:id="@+id/fab_download"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:contentDescription="Hello World2"
  36. fab:fabSize="mini"
  37. fab:backgroundTint="@android:color/holo_red_light"/>
  38. <android.support.design.widget.FloatingActionButton
  39. android:id="@+id/fab_browser"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:contentDescription="Hello World3"
  43. fab:fabSize="mini"
  44. fab:backgroundTint="@android:color/holo_red_light"/>
  45. </com.novaapps.floatingactionmenu.FloatingActionMenu>
  46. </LinearLayout>