reader_menu.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:id="@+id/reader_menu"
  8. android:visibility="gone"
  9. tools:visibility="visible">
  10. <android.support.v7.widget.Toolbar
  11. android:id="@+id/toolbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. android:background="@color/reader_menu_background"
  15. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  16. app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
  17. android:elevation="4dp" />
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:id="@+id/reader_menu_bottom"
  22. android:background="@color/reader_menu_background"
  23. android:orientation="vertical"
  24. android:layout_alignParentBottom="true">
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="?attr/actionBarSize">
  28. <TextView
  29. android:id="@+id/current_page"
  30. android:layout_width="32dp"
  31. android:layout_height="wrap_content"
  32. android:layout_marginLeft="8dp"
  33. android:layout_gravity="center_vertical"
  34. android:textColor="@color/light_grey"
  35. android:textSize="15sp"
  36. android:gravity="center_horizontal"
  37. android:layout_marginTop="12dp"
  38. android:layout_marginBottom="12dp" />
  39. <SeekBar
  40. android:id="@+id/page_seeker"
  41. android:layout_width="0dp"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="1"
  44. android:layout_gravity="center_vertical" />
  45. <TextView
  46. android:id="@+id/total_pages"
  47. android:layout_width="32dp"
  48. android:layout_height="wrap_content"
  49. android:layout_marginRight="8dp"
  50. android:layout_gravity="center_vertical"
  51. android:textColor="@color/light_grey"
  52. android:textSize="15sp"
  53. android:gravity="center_horizontal" />
  54. </LinearLayout>
  55. <View android:background="#777777"
  56. android:layout_width="match_parent"
  57. android:layout_height="1dp" />
  58. <LinearLayout
  59. android:layout_width="match_parent"
  60. android:layout_height="?attr/actionBarSize">
  61. <ImageButton
  62. android:layout_width="0dp"
  63. android:layout_height="match_parent"
  64. android:layout_weight="1"
  65. android:id="@+id/lock_orientation"
  66. android:src="@drawable/ic_screen_rotation"
  67. android:layout_gravity="center_vertical"
  68. android:background="?android:selectableItemBackground" />
  69. <ImageButton
  70. android:layout_width="0dp"
  71. android:layout_height="match_parent"
  72. android:layout_weight="1"
  73. android:layout_gravity="center_vertical"
  74. android:background="?android:selectableItemBackground" />
  75. <ImageButton
  76. android:layout_width="0dp"
  77. android:layout_height="match_parent"
  78. android:layout_weight="1"
  79. android:id="@+id/reader_selector"
  80. android:src="@drawable/ic_view_carousel"
  81. android:layout_gravity="center_vertical"
  82. android:background="?android:selectableItemBackground" />
  83. <ImageButton
  84. android:layout_width="0dp"
  85. android:layout_height="match_parent"
  86. android:layout_weight="1"
  87. android:id="@+id/reader_extra_settings"
  88. android:src="@drawable/ic_more_vert"
  89. android:layout_gravity="center_vertical"
  90. android:background="?android:selectableItemBackground" />
  91. </LinearLayout>
  92. </LinearLayout>
  93. </RelativeLayout>