activity_manga.xml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/root_view"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent">
  8. <io.legado.app.ui.book.manga.recyclerview.WebtoonFrame
  9. android:id="@+id/webtoon_frame"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:background="@color/black">
  13. <io.legado.app.ui.book.manga.recyclerview.WebtoonRecyclerView
  14. android:id="@+id/recycler_view"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent" />
  17. </io.legado.app.ui.book.manga.recyclerview.WebtoonFrame>
  18. <io.legado.app.ui.widget.ReaderInfoBarView
  19. android:id="@+id/infobar"
  20. android:layout_width="match_parent"
  21. android:layout_height="20dp"
  22. android:layout_gravity="bottom"
  23. android:layout_marginBottom="10dp"
  24. android:paddingStart="10dp"
  25. android:paddingEnd="10dp"
  26. android:visibility="gone"
  27. tools:visibility="visible" />
  28. <io.legado.app.ui.book.read.MangaMenu
  29. android:id="@+id/manga_menu"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:visibility="gone"
  33. tools:visibility="visible" />
  34. <FrameLayout
  35. android:id="@+id/fl_loading"
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent">
  38. <LinearLayout
  39. android:id="@+id/ll_loading"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. android:background="?attr/colorSurface"
  43. android:layout_gravity="center"
  44. android:gravity="center"
  45. android:orientation="vertical">
  46. <com.google.android.material.loadingindicator.LoadingIndicator
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. app:indicatorSize="64dp" />
  50. <TextView
  51. android:id="@+id/tv_loading_message"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_marginTop="16dp"
  55. android:textStyle="bold"
  56. android:text="@string/loading" />
  57. </LinearLayout>
  58. <LinearLayout
  59. android:id="@+id/ll_retry"
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:gravity="center"
  63. android:orientation="vertical"
  64. android:visibility="gone">
  65. <io.legado.app.ui.widget.EmptyMessageView
  66. android:id="@+id/tv_msg2"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:textColor="@color/white"
  70. android:textSize="32sp" />
  71. <com.google.android.material.button.MaterialButton
  72. android:id="@+id/tv_retry"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. style="@style/Widget.Material3Expressive.Button.TonalButton"
  76. app:icon="@drawable/ic_refresh"
  77. android:layout_margin="16dp"
  78. app:iconPadding="4dp"
  79. android:text="@string/load_error_retry"
  80. />
  81. </LinearLayout>
  82. </FrameLayout>
  83. </FrameLayout>