reader_menu.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout android:id="@+id/reader_menu"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  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="?colorPrimary"
  15. android:elevation="4dp"
  16. android:theme="?attr/actionBarTheme"/>
  17. <LinearLayout
  18. android:id="@+id/reader_menu_bottom"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:layout_alignParentBottom="true"
  22. android:background="?colorPrimary"
  23. android:orientation="vertical">
  24. <LinearLayout
  25. android:layout_width="match_parent"
  26. android:layout_height="?attr/actionBarSize">
  27. <TextView
  28. android:id="@+id/left_page_text"
  29. android:layout_width="32dp"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="center_vertical"
  32. android:layout_marginBottom="12dp"
  33. android:layout_marginLeft="8dp"
  34. android:layout_marginTop="12dp"
  35. android:gravity="center_horizontal"
  36. android:textSize="15sp"/>
  37. <SeekBar
  38. android:id="@+id/page_seekbar"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_gravity="center_vertical"
  42. android:layout_weight="1"
  43. />
  44. <TextView
  45. android:id="@+id/right_page_text"
  46. android:layout_width="32dp"
  47. android:layout_height="wrap_content"
  48. android:layout_gravity="center_vertical"
  49. android:layout_marginRight="8dp"
  50. android:gravity="center_horizontal"
  51. android:textSize="15sp"/>
  52. </LinearLayout>
  53. <View
  54. android:layout_width="match_parent"
  55. android:layout_height="1dp"
  56. android:background="#777777"/>
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="?attr/actionBarSize">
  60. <android.support.v7.widget.AppCompatImageButton
  61. android:id="@+id/lock_orientation"
  62. android:layout_width="0dp"
  63. android:layout_height="match_parent"
  64. android:layout_gravity="center_vertical"
  65. android:layout_weight="1"
  66. android:background="?android:selectableItemBackground"
  67. app:srcCompat="@drawable/ic_screen_rotation_white_24dp"/>
  68. <android.support.v7.widget.AppCompatImageButton
  69. android:id="@+id/reader_zoom_selector"
  70. android:layout_width="0dp"
  71. android:layout_height="match_parent"
  72. android:layout_gravity="center_vertical"
  73. android:layout_weight="1"
  74. android:background="?android:selectableItemBackground"
  75. app:srcCompat="@drawable/ic_crop_original_white_24dp"/>
  76. <android.support.v7.widget.AppCompatImageButton
  77. android:id="@+id/reader_scale_type_selector"
  78. android:layout_width="0dp"
  79. android:layout_height="match_parent"
  80. android:layout_gravity="center_vertical"
  81. android:layout_weight="1"
  82. android:background="?android:selectableItemBackground"
  83. app:srcCompat="@drawable/ic_zoom_out_map_white_24dp"/>
  84. <android.support.v7.widget.AppCompatImageButton
  85. android:id="@+id/reader_selector"
  86. android:layout_width="0dp"
  87. android:layout_height="match_parent"
  88. android:layout_gravity="center_vertical"
  89. android:layout_weight="1"
  90. android:background="?android:selectableItemBackground"
  91. app:srcCompat="@drawable/ic_view_carousel_white_24dp"/>
  92. <android.support.v7.widget.AppCompatImageButton
  93. android:id="@+id/reader_extra_settings"
  94. android:layout_width="0dp"
  95. android:layout_height="match_parent"
  96. android:layout_gravity="center_vertical"
  97. android:layout_weight="1"
  98. android:background="?android:selectableItemBackground"
  99. app:srcCompat="@drawable/ic_more_vert_white_24dp"/>
  100. </LinearLayout>
  101. </LinearLayout>
  102. </RelativeLayout>