fragment_line_menu.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:background="@android:color/holo_green_light">
  7. <terranovaproductions.newcomicreader.FloatingActionMenu
  8. android:id="@+id/fab_menu_line"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:layout_marginBottom="16dp"
  12. android:layout_marginRight="16dp">
  13. <!--First button as menu button-->
  14. <android.support.design.widget.FloatingActionButton
  15. android:id="@+id/fab_main"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:src="@drawable/ic_add_white_24dp"
  19. fab:fabSize="normal"
  20. fab:backgroundTint="@android:color/holo_red_light"/>
  21. <!-- Other button as menu items-->
  22. <android.support.design.widget.FloatingActionButton
  23. android:id="@+id/fab_random"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:contentDescription="Hello World1"
  27. fab:fabSize="mini"
  28. fab:backgroundTint="@android:color/holo_red_light" />
  29. <android.support.design.widget.FloatingActionButton
  30. android:id="@+id/fab_download"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:contentDescription="Hello World2"
  34. fab:fabSize="mini"
  35. fab:backgroundTint="@android:color/holo_red_light"/>
  36. <android.support.design.widget.FloatingActionButton
  37. android:id="@+id/fab_browser"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:contentDescription="Hello World3"
  41. fab:fabSize="mini"
  42. fab:backgroundTint="@android:color/holo_red_light"/>
  43. </terranovaproductions.newcomicreader.FloatingActionMenu>
  44. </LinearLayout>