activity_rule_sub.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <io.legado.app.ui.widget.TitleBar
  9. android:id="@+id/title_bar"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. app:title="@string/rule_subscription" />
  13. <FrameLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent">
  16. <androidx.recyclerview.widget.RecyclerView
  17. android:id="@+id/recycler_view"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:clipToPadding="false"
  21. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  22. tools:listitem="@layout/item_rule_sub" />
  23. <TextView
  24. android:id="@+id/tv_empty_msg"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center"
  28. android:layout_margin="16dp"
  29. android:gravity="center"
  30. android:text="@string/rule_sub_empty_msg"
  31. android:visibility="gone"
  32. app:layout_constraintBottom_toBottomOf="parent"
  33. app:layout_constraintLeft_toLeftOf="parent"
  34. app:layout_constraintRight_toRightOf="parent"
  35. app:layout_constraintTop_toBottomOf="@+id/title_bar"
  36. tools:text="TextView" />
  37. </FrameLayout>
  38. </LinearLayout>