reader_activity.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  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/reader"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent">
  15. </FrameLayout>
  16. <ProgressBar
  17. android:id="@+id/please_wait"
  18. style="?android:attr/progressBarStyleLarge"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_gravity="center"/>
  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:visibility="invisible"
  37. tools:visibility="visible">
  38. <android.support.v7.widget.Toolbar
  39. android:id="@+id/toolbar"
  40. android:layout_width="match_parent"
  41. android:layout_height="?attr/actionBarSize"
  42. android:background="?colorPrimary"
  43. android:elevation="4dp"
  44. android:theme="?attr/actionBarTheme"/>
  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:gravity="center"
  51. android:background="?colorPrimary"
  52. android:orientation="horizontal"
  53. android:focusable="false"
  54. android:descendantFocusability="blocksDescendants">
  55. <ImageButton
  56. android:id="@+id/left_chapter"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  60. android:background="?android:selectableItemBackground"
  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="wrap_content"
  66. android:gravity="center"
  67. android:textSize="15sp"/>
  68. <SeekBar
  69. android:id="@+id/page_seekbar"
  70. android:layout_width="0dp"
  71. android:layout_height="wrap_content"
  72. android:layout_weight="1"/>
  73. <TextView
  74. android:id="@+id/right_page_text"
  75. android:layout_width="32dp"
  76. android:layout_height="wrap_content"
  77. android:gravity="center"
  78. android:textSize="15sp"/>
  79. <ImageButton
  80. android:id="@+id/right_chapter"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  84. android:background="?android:selectableItemBackground"
  85. app:srcCompat="@drawable/ic_skip_next_white_24dp"/>
  86. </LinearLayout>
  87. </FrameLayout>
  88. <View
  89. android:id="@+id/brightness_overlay"
  90. android:layout_width="match_parent"
  91. android:layout_height="match_parent"
  92. android:visibility="gone"/>
  93. <View
  94. android:id="@+id/color_overlay"
  95. android:layout_width="match_parent"
  96. android:layout_height="match_parent"
  97. android:visibility="gone"/>
  98. </FrameLayout>