activity_reader.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <TextView
  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|start"
  28. android:background="?android:attr/colorBackground"
  29. android:padding="4dp"/>
  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. <ImageButton
  54. android:id="@+id/left_chapter"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  58. android:background="?android:selectableItemBackground"
  59. app:srcCompat="@drawable/ic_skip_previous_white_24dp"/>
  60. <TextView
  61. android:id="@+id/left_page_text"
  62. android:layout_width="32dp"
  63. android:layout_height="wrap_content"
  64. android:gravity="center"
  65. android:textSize="15sp"/>
  66. <SeekBar
  67. android:id="@+id/page_seekbar"
  68. android:layout_width="0dp"
  69. android:layout_height="wrap_content"
  70. android:layout_weight="1"/>
  71. <TextView
  72. android:id="@+id/right_page_text"
  73. android:layout_width="32dp"
  74. android:layout_height="wrap_content"
  75. android:gravity="center"
  76. android:textSize="15sp"/>
  77. <ImageButton
  78. android:id="@+id/right_chapter"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:padding="@dimen/material_layout_keylines_screen_edge_margin"
  82. android:background="?android:selectableItemBackground"
  83. app:srcCompat="@drawable/ic_skip_next_white_24dp"/>
  84. </LinearLayout>
  85. </FrameLayout>
  86. <View
  87. android:id="@+id/brightness_overlay"
  88. android:layout_width="match_parent"
  89. android:layout_height="match_parent"
  90. android:visibility="gone"/>
  91. </FrameLayout>