From f3e46a130ff8ba5af37fc782bfd8a7cbd8ec33f7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 21 May 2022 01:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/remote/RemoteBookActivity.kt | 2 + .../main/res/layout/activity_remote_book.xml | 40 ++++++++++++------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt index 2b8fec9ba..83390113f 100644 --- a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt @@ -3,6 +3,7 @@ package io.legado.app.ui.book.remote import android.annotation.SuppressLint import android.os.Bundle import androidx.activity.viewModels +import androidx.core.view.isGone import androidx.recyclerview.widget.LinearLayoutManager import io.legado.app.R import io.legado.app.base.VMBaseActivity @@ -40,6 +41,7 @@ class RemoteBookActivity : VMBaseActivity binding.refreshProgressBar.isAutoLoading = false + binding.tvEmptyMsg.isGone = remoteBooks.isEmpty() adapter.setItems(remoteBooks) } } diff --git a/app/src/main/res/layout/activity_remote_book.xml b/app/src/main/res/layout/activity_remote_book.xml index 6af80a958..221917045 100644 --- a/app/src/main/res/layout/activity_remote_book.xml +++ b/app/src/main/res/layout/activity_remote_book.xml @@ -2,25 +2,21 @@ + android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools"> - - - - - + app:layout_constraintTop_toBottomOf="@id/title_bar" /> - - - - - - - + + + + + + + + + \ No newline at end of file