From c1cdccc9f93a0455bf19290c6616ad6898c360eb Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 8 Feb 2020 21:03:11 +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 --- .../main/java/io/legado/app/ui/book/info/BookInfoActivity.kt | 2 ++ app/src/main/res/layout/activity_book_info.xml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index 9efde78b9..b515496c9 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -4,6 +4,7 @@ import android.app.Activity import android.content.Intent import android.graphics.drawable.Drawable import android.os.Bundle +import android.text.method.ScrollingMovementMethod import android.view.Menu import android.view.MenuItem import androidx.lifecycle.Observer @@ -53,6 +54,7 @@ class BookInfoActivity : override fun onActivityCreated(savedInstanceState: Bundle?) { title_bar.background.alpha = 0 + tv_intro.movementMethod = ScrollingMovementMethod.getInstance() viewModel.bookData.observe(this, Observer { showBook(it) }) viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) viewModel.chapterListData.observe(this, Observer { showChapter(it) }) diff --git a/app/src/main/res/layout/activity_book_info.xml b/app/src/main/res/layout/activity_book_info.xml index cc9ae1926..d8c0b18a6 100644 --- a/app/src/main/res/layout/activity_book_info.xml +++ b/app/src/main/res/layout/activity_book_info.xml @@ -189,9 +189,7 @@ android:layout_weight="1" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" - android:maxHeight="160dp" android:minHeight="100dp" - android:scrollbars="vertical" android:textSize="14sp" />