reader_activity.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center">
  7. <FrameLayout
  8. android:id="@+id/reader_container"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent">
  11. <FrameLayout
  12. android:id="@+id/viewer_container"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent" />
  15. <ProgressBar
  16. android:id="@+id/please_wait"
  17. android:layout_width="56dp"
  18. android:layout_height="56dp"
  19. android:layout_gravity="center"
  20. android:visibility="gone"
  21. tools:visibility="visible" />
  22. <eu.kanade.tachiyomi.ui.reader.PageIndicatorTextView
  23. android:id="@+id/page_number"
  24. style="@style/TextAppearance.Regular.Caption"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="bottom|center_horizontal"
  28. android:padding="4dp"
  29. android:textStyle="bold" />
  30. </FrameLayout>
  31. <FrameLayout
  32. android:id="@+id/reader_menu"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:fitsSystemWindows="true"
  36. android:theme="?attr/actionBarTheme"
  37. android:visibility="invisible"
  38. tools:visibility="visible">
  39. <androidx.appcompat.widget.Toolbar
  40. android:id="@+id/toolbar"
  41. android:layout_width="match_parent"
  42. android:layout_height="?attr/actionBarSize"
  43. android:background="?colorPrimary"
  44. android:elevation="4dp" />
  45. <LinearLayout
  46. android:id="@+id/reader_menu_bottom"
  47. android:layout_width="match_parent"
  48. android:layout_height="?attr/actionBarSize"
  49. android:layout_gravity="bottom"
  50. android:background="?colorPrimary"
  51. android:descendantFocusability="blocksDescendants"
  52. android:gravity="center"
  53. android:orientation="horizontal">
  54. <ImageButton
  55. android:id="@+id/left_chapter"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:background="?selectableItemBackgroundBorderless"
  59. android:contentDescription="@string/action_previous_chapter"
  60. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  61. app:srcCompat="@drawable/ic_skip_previous_white_24dp" />
  62. <TextView
  63. android:id="@+id/left_page_text"
  64. android:layout_width="32dp"
  65. android:layout_height="match_parent"
  66. android:gravity="center"
  67. android:textSize="15sp"
  68. tools:text="1" />
  69. <!--
  70. Wonky way of setting height due to issues with horizontally centering the thumb in Android 5.
  71. See https://stackoverflow.com/questions/15701767/android-thumb-is-not-centered-in-seekbar
  72. -->
  73. <eu.kanade.tachiyomi.ui.reader.ReaderSeekBar
  74. android:id="@+id/page_seekbar"
  75. android:layout_width="0dp"
  76. android:layout_height="wrap_content"
  77. android:maxHeight="?attr/actionBarSize"
  78. android:minHeight="?attr/actionBarSize"
  79. android:layout_weight="1" />
  80. <TextView
  81. android:id="@+id/right_page_text"
  82. android:layout_width="32dp"
  83. android:layout_height="match_parent"
  84. android:gravity="center"
  85. android:textSize="15sp"
  86. tools:text="15" />
  87. <ImageButton
  88. android:id="@+id/right_chapter"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:background="?selectableItemBackgroundBorderless"
  92. android:contentDescription="@string/action_next_chapter"
  93. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  94. app:srcCompat="@drawable/ic_skip_next_white_24dp" />
  95. </LinearLayout>
  96. </FrameLayout>
  97. <View
  98. android:id="@+id/brightness_overlay"
  99. android:layout_width="match_parent"
  100. android:layout_height="match_parent"
  101. android:visibility="gone" />
  102. <eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
  103. android:id="@+id/color_overlay"
  104. android:layout_width="match_parent"
  105. android:layout_height="match_parent"
  106. android:visibility="gone" />
  107. </FrameLayout>