reader_activity.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. <eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
  32. android:id="@+id/color_overlay"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:visibility="gone" />
  36. <FrameLayout
  37. android:id="@+id/reader_menu"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. android:theme="?attr/actionBarTheme"
  41. android:visibility="invisible"
  42. tools:visibility="visible">
  43. <com.google.android.material.appbar.MaterialToolbar
  44. android:id="@+id/toolbar"
  45. android:layout_width="match_parent"
  46. android:layout_height="?attr/actionBarSize"
  47. android:background="?colorPrimary" />
  48. <LinearLayout
  49. android:id="@+id/reader_menu_bottom"
  50. android:layout_width="match_parent"
  51. android:layout_height="?attr/actionBarSize"
  52. android:layout_gravity="bottom"
  53. android:background="?colorPrimary"
  54. android:descendantFocusability="blocksDescendants"
  55. android:gravity="center"
  56. android:orientation="horizontal">
  57. <ImageButton
  58. android:id="@+id/left_chapter"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:background="?selectableItemBackgroundBorderless"
  62. android:contentDescription="@string/action_previous_chapter"
  63. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  64. app:srcCompat="@drawable/ic_skip_previous_white_24dp" />
  65. <TextView
  66. android:id="@+id/left_page_text"
  67. android:layout_width="32dp"
  68. android:layout_height="match_parent"
  69. android:gravity="center"
  70. android:textSize="15sp"
  71. tools:text="1" />
  72. <!--
  73. Wonky way of setting height due to issues with horizontally centering the thumb in Android 5.
  74. See https://stackoverflow.com/questions/15701767/android-thumb-is-not-centered-in-seekbar
  75. -->
  76. <eu.kanade.tachiyomi.ui.reader.ReaderSeekBar
  77. android:id="@+id/page_seekbar"
  78. android:layout_width="0dp"
  79. android:layout_height="wrap_content"
  80. android:layout_weight="1"
  81. android:maxHeight="?attr/actionBarSize"
  82. android:minHeight="?attr/actionBarSize" />
  83. <TextView
  84. android:id="@+id/right_page_text"
  85. android:layout_width="32dp"
  86. android:layout_height="match_parent"
  87. android:gravity="center"
  88. android:textSize="15sp"
  89. tools:text="15" />
  90. <ImageButton
  91. android:id="@+id/right_chapter"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:background="?selectableItemBackgroundBorderless"
  95. android:contentDescription="@string/action_next_chapter"
  96. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  97. app:srcCompat="@drawable/ic_skip_next_white_24dp" />
  98. </LinearLayout>
  99. </FrameLayout>
  100. <View
  101. android:id="@+id/brightness_overlay"
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:visibility="gone" />
  105. </FrameLayout>