layout.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:fab="http://schemas.android.com/apk/res-auto"
  3. android:id="@+id/comicView"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <terranovaproductions.newcomicreader.FloatingActionMenu
  7. android:id="@+id/fab_menu"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:padding="16dp">
  11. <!--First button as menu button-->
  12. <android.support.design.widget.FloatingActionButton
  13. android:id="@+id/fab_main"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:src="@drawable/ic_add_white_24dp"
  17. fab:fabSize="normal"
  18. fab:backgroundTint="@color/material_orange"/>
  19. <!-- Other button as menu items-->
  20. <android.support.design.widget.FloatingActionButton
  21. android:id="@+id/fab_random"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:contentDescription="Hello World1"
  25. android:paddingBottom="20dp"
  26. fab:fabSize="mini"
  27. fab:backgroundTint="@color/material_orange" />
  28. <android.support.design.widget.FloatingActionButton
  29. android:id="@+id/fab_download"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:contentDescription="Hello World2"
  33. android:paddingBottom="20dp"
  34. fab:fabSize="mini"
  35. fab:backgroundTint="@color/material_orange"/>
  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. android:paddingBottom="20dp"
  42. fab:fabSize="mini"
  43. fab:backgroundTint="@color/material_orange"/>
  44. </terranovaproductions.newcomicreader.FloatingActionMenu>
  45. </RelativeLayout>