dialog_chapter_change_source.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <androidx.appcompat.widget.Toolbar
  9. android:id="@+id/tool_bar"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. app:displayHomeAsUp="false"
  13. app:fitStatusBar="false" />
  14. <com.google.android.material.progressindicator.LinearProgressIndicator
  15. android:id="@+id/refresh_progress_bar"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:indeterminate="true" />
  19. <io.legado.app.ui.widget.recycler.scroller.FastScrollRecyclerView
  20. android:id="@+id/recycler_view"
  21. android:layout_width="match_parent"
  22. android:layout_height="0dp"
  23. android:layout_weight="1"
  24. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
  25. <FrameLayout
  26. android:id="@+id/cl_toc"
  27. android:layout_width="match_parent"
  28. android:layout_height="0dp"
  29. android:layout_weight="1"
  30. android:orientation="vertical"
  31. android:visibility="gone">
  32. <FrameLayout
  33. android:id="@+id/fl_hide_toc"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="top"
  37. android:elevation="4dp"
  38. app:layout_constraintTop_toTopOf="parent">
  39. <androidx.constraintlayout.utils.widget.ImageFilterView
  40. android:id="@+id/iv_hide_toc"
  41. android:layout_width="match_parent"
  42. android:layout_height="36dp"
  43. android:background="?attr/selectableItemBackground"
  44. android:src="@drawable/ic_arrow_down" />
  45. </FrameLayout>
  46. <com.google.android.material.loadingindicator.LoadingIndicator
  47. android:id="@+id/loading_toc"
  48. android:layout_width="48dp"
  49. android:layout_height="48dp"
  50. android:layout_gravity="center"
  51. android:visibility="gone"
  52. app:layout_constraintBottom_toBottomOf="@+id/recycler_view_toc"
  53. app:layout_constraintLeft_toLeftOf="@+id/recycler_view_toc"
  54. app:layout_constraintRight_toRightOf="@+id/recycler_view_toc"
  55. app:layout_constraintTop_toTopOf="@+id/recycler_view_toc" />
  56. <androidx.recyclerview.widget.RecyclerView
  57. android:id="@+id/recycler_view_toc"
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  61. app:layout_constraintBottom_toBottomOf="parent"
  62. app:layout_constraintTop_toBottomOf="@+id/fl_hide_toc" />
  63. </FrameLayout>
  64. <LinearLayout
  65. android:id="@+id/ll_bottom_bar"
  66. android:layout_width="match_parent"
  67. android:layout_height="36dp"
  68. android:layout_gravity="bottom"
  69. android:gravity="center_vertical"
  70. android:orientation="horizontal"
  71. android:paddingLeft="10dp"
  72. android:paddingRight="10dp">
  73. <TextView
  74. android:id="@+id/tv_dur"
  75. android:layout_width="0dp"
  76. android:layout_height="match_parent"
  77. android:layout_weight="1"
  78. android:background="?attr/selectableItemBackgroundBorderless"
  79. android:ellipsize="middle"
  80. android:gravity="center_vertical"
  81. android:paddingLeft="10dp"
  82. android:paddingRight="10dp"
  83. android:singleLine="true"
  84. android:textSize="12sp" />
  85. <androidx.appcompat.widget.AppCompatImageView
  86. android:id="@+id/iv_top"
  87. android:layout_width="36dp"
  88. android:layout_height="match_parent"
  89. android:background="?attr/selectableItemBackgroundBorderless"
  90. android:contentDescription="@string/go_to_top"
  91. android:src="@drawable/ic_arrow_drop_up"
  92. android:tooltipText="@string/go_to_top"
  93. tools:ignore="UnusedAttribute" />
  94. <androidx.appcompat.widget.AppCompatImageView
  95. android:id="@+id/iv_bottom"
  96. android:layout_width="36dp"
  97. android:layout_height="match_parent"
  98. android:background="?attr/selectableItemBackgroundBorderless"
  99. android:contentDescription="@string/go_to_bottom"
  100. android:src="@drawable/ic_arrow_drop_down"
  101. android:tooltipText="@string/go_to_bottom"
  102. tools:ignore="UnusedAttribute" />
  103. </LinearLayout>
  104. </LinearLayout>