reader_menu.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:id="@+id/reader_menu"
  7. android:visibility="gone"
  8. tools:visibility="visible">
  9. <include layout="@layout/toolbar"/>
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:id="@+id/reader_menu_bottom"
  14. android:background="@color/reader_menu_background"
  15. android:orientation="vertical"
  16. android:layout_alignParentBottom="true">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content">
  20. <TextView
  21. android:id="@+id/current_page"
  22. android:layout_width="32dp"
  23. android:layout_height="wrap_content"
  24. android:layout_marginLeft="8dp"
  25. android:layout_gravity="center_vertical"
  26. android:textColor="@color/light_grey"
  27. android:gravity="center_horizontal"
  28. android:layout_marginTop="12dp"
  29. android:layout_marginBottom="12dp" />
  30. <SeekBar
  31. android:id="@+id/page_seeker"
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1"
  35. android:layout_gravity="center_vertical" />
  36. <TextView
  37. android:id="@+id/total_pages"
  38. android:layout_width="32dp"
  39. android:layout_height="wrap_content"
  40. android:layout_marginRight="8dp"
  41. android:layout_gravity="center_vertical"
  42. android:textColor="@color/light_grey"
  43. android:gravity="center_horizontal" />
  44. </LinearLayout>
  45. <View android:background="#777777"
  46. android:layout_width="match_parent"
  47. android:layout_height="1dp" />
  48. <LinearLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:gravity="center_horizontal"
  52. android:layout_marginTop="8dp"
  53. android:layout_marginBottom="8dp">
  54. <ImageButton
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. android:layout_weight="1"
  58. android:id="@+id/lock_orientation"
  59. android:src="@drawable/ic_screen_rotation"
  60. android:background="?android:selectableItemBackground" />
  61. <ImageButton
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_weight="1"
  65. android:background="?android:selectableItemBackground" />
  66. <ImageButton
  67. android:layout_width="0dp"
  68. android:layout_height="wrap_content"
  69. android:layout_weight="1"
  70. android:background="?android:selectableItemBackground" />
  71. <ImageButton
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. android:layout_weight="1"
  75. android:id="@+id/reader_selector"
  76. android:src="@drawable/ic_view_carousel"
  77. android:background="?android:selectableItemBackground" />
  78. </LinearLayout>
  79. </LinearLayout>
  80. </RelativeLayout>