activity_import_book.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. <io.legado.app.ui.widget.TitleBar
  8. android:id="@+id/titleBar"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. app:layout_constraintTop_toTopOf="parent"
  12. app:contentInsetStartWithNavigation="0dp"
  13. app:contentLayout="@layout/view_search" />
  14. <!--path-->
  15. <LinearLayout
  16. android:id="@+id/lay_top"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:gravity="center_vertical"
  20. android:minHeight="36dp"
  21. android:orientation="horizontal"
  22. android:paddingHorizontal="16dp"
  23. app:layout_constraintTop_toBottomOf="@id/titleBar">
  24. <TextView
  25. android:id="@+id/tv_path"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:layout_weight="1"
  29. android:focusable="true"
  30. android:gravity="center_vertical"
  31. android:singleLine="true"
  32. android:textSize="14sp"
  33. tools:text="/" />
  34. <com.google.android.material.button.MaterialButton
  35. android:id="@+id/tv_go_back"
  36. android:layout_width="36dp"
  37. android:layout_height="36dp"
  38. style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
  39. app:icon="@drawable/ic_return"
  40. app:iconGravity="textStart"
  41. tools:ignore="UnusedAttribute" />
  42. </LinearLayout>
  43. <com.google.android.material.progressindicator.LinearProgressIndicator
  44. android:id="@+id/refresh_progress_bar"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:visibility="gone"
  48. android:indeterminate="true"
  49. app:layout_constraintTop_toBottomOf="@id/lay_top" />
  50. <FrameLayout
  51. android:layout_width="match_parent"
  52. android:layout_height="0dp"
  53. android:layout_weight="1"
  54. app:layout_constraintBottom_toTopOf="@id/select_action_bar"
  55. app:layout_constraintTop_toBottomOf="@id/refresh_progress_bar">
  56. <io.legado.app.ui.widget.recycler.scroller.FastScrollRecyclerView
  57. android:id="@+id/recycler_view"
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. tools:ignore="SpeakableTextPresentCheck" />
  61. <TextView
  62. android:id="@+id/tv_empty_msg"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:layout_gravity="center"
  66. android:layout_margin="16dp"
  67. android:gravity="center"
  68. android:text="@string/empty"
  69. android:visibility="gone"
  70. tools:text="TextView" />
  71. </FrameLayout>
  72. <io.legado.app.ui.widget.SelectActionBar
  73. android:id="@+id/select_action_bar"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. app:layout_constraintBottom_toBottomOf="parent" />
  77. </androidx.constraintlayout.widget.ConstraintLayout>