reader_menu.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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/AppTheme.Overlay.Dark"
  16. app:popupTheme="@style/AppTheme.Popup"
  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. android:theme="@style/AppTheme.Overlay.Dark"
  46. />
  47. <TextView
  48. android:id="@+id/total_pages"
  49. android:layout_width="32dp"
  50. android:layout_height="wrap_content"
  51. android:layout_marginRight="8dp"
  52. android:layout_gravity="center_vertical"
  53. android:textColor="@color/light_grey"
  54. android:textSize="15sp"
  55. android:gravity="center_horizontal" />
  56. </LinearLayout>
  57. <View android:background="#777777"
  58. android:layout_width="match_parent"
  59. android:layout_height="1dp" />
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="?attr/actionBarSize">
  63. <ImageButton
  64. android:layout_width="0dp"
  65. android:layout_height="match_parent"
  66. android:layout_weight="1"
  67. android:id="@+id/lock_orientation"
  68. android:src="@drawable/ic_screen_rotation"
  69. android:layout_gravity="center_vertical"
  70. android:background="?android:selectableItemBackground" />
  71. <ImageButton
  72. android:layout_width="0dp"
  73. android:layout_height="match_parent"
  74. android:layout_weight="1"
  75. android:id="@+id/reader_zoom_selector"
  76. android:src="@drawable/ic_crop_original_white_24dp"
  77. android:layout_gravity="center_vertical"
  78. android:background="?android:selectableItemBackground"/>
  79. <ImageButton
  80. android:layout_width="0dp"
  81. android:layout_height="match_parent"
  82. android:layout_weight="1"
  83. android:id="@+id/reader_scale_type_selector"
  84. android:src="@drawable/ic_zoom_out_map_white_24dp"
  85. android:layout_gravity="center_vertical"
  86. android:background="?android:selectableItemBackground" />
  87. <ImageButton
  88. android:layout_width="0dp"
  89. android:layout_height="match_parent"
  90. android:layout_weight="1"
  91. android:id="@+id/reader_selector"
  92. android:src="@drawable/ic_view_carousel"
  93. android:layout_gravity="center_vertical"
  94. android:background="?android:selectableItemBackground" />
  95. <ImageButton
  96. android:layout_width="0dp"
  97. android:layout_height="match_parent"
  98. android:layout_weight="1"
  99. android:id="@+id/reader_extra_settings"
  100. android:src="@drawable/ic_more_vert"
  101. android:layout_gravity="center_vertical"
  102. android:background="?android:selectableItemBackground" />
  103. </LinearLayout>
  104. </LinearLayout>
  105. </RelativeLayout>