reader_activity.xml 5.1 KB

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