pull/423/head
parent
cabcbb2512
commit
b67bb916ef
@ -1,20 +1,40 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
android:orientation="vertical" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent"> |
android:layout_height="match_parent" |
||||||
|
android:orientation="vertical"> |
||||||
|
|
||||||
<io.legado.app.ui.widget.TitleBar |
<io.legado.app.ui.widget.TitleBar |
||||||
android:id="@+id/title_bar" |
android:id="@+id/title_bar" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
app:attachToActivity="false" |
app:attachToActivity="false" |
||||||
|
app:layout_constraintTop_toTopOf="parent" |
||||||
app:title="@string/rss" /> |
app:title="@string/rss" /> |
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView |
<androidx.recyclerview.widget.RecyclerView |
||||||
android:id="@+id/recycler_view" |
android:id="@+id/recycler_view" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" /> |
android:layout_height="0dp" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/title_bar" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" |
||||||
|
app:spanCount="4" |
||||||
|
tools:listitem="@layout/item_rss" /> |
||||||
|
|
||||||
</LinearLayout> |
<TextView |
||||||
|
android:id="@+id/tv_empty_msg" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_margin="16dp" |
||||||
|
android:gravity="center" |
||||||
|
android:visibility="gone" |
||||||
|
app:layout_constraintTop_toBottomOf="@+id/title_bar" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layout_constraintLeft_toLeftOf="parent" |
||||||
|
app:layout_constraintRight_toRightOf="parent" |
||||||
|
tools:text="TextView" /> |
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue