rss阅读记录单行显示,可滑动查看 (#4594)
This commit is contained in:
@@ -2,6 +2,7 @@ package io.legado.app.ui.rss.article
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.text.method.ScrollingMovementMethod
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
@@ -76,6 +77,8 @@ class ReadRecordDialog : BaseDialogFragment(R.layout.dialog_recycler_view),
|
|||||||
item: RssReadRecord,
|
item: RssReadRecord,
|
||||||
payloads: MutableList<Any>
|
payloads: MutableList<Any>
|
||||||
) {
|
) {
|
||||||
|
binding.textTitle.movementMethod = ScrollingMovementMethod()
|
||||||
|
binding.textRecord.movementMethod = ScrollingMovementMethod()
|
||||||
binding.textTitle.text = item.title
|
binding.textTitle.text = item.title
|
||||||
binding.textRecord.text = item.record
|
binding.textRecord.text = item.record
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,19 +6,31 @@
|
|||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<HorizontalScrollView
|
||||||
android:id="@+id/text_title"
|
|
||||||
android:text="@string/title"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:textIsSelectable="true" />
|
android:scrollbars="none">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_title"
|
||||||
|
android:text="@string/title"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="none" />
|
||||||
|
</HorizontalScrollView>
|
||||||
|
|
||||||
<TextView
|
<HorizontalScrollView
|
||||||
android:id="@+id/text_record"
|
|
||||||
android:text="@string/read_record"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:autoLink="web"
|
android:scrollbars="none">
|
||||||
android:textIsSelectable="true" />
|
<TextView
|
||||||
|
android:id="@+id/text_record"
|
||||||
|
android:text="@string/read_record"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:autoLink="web"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="none" />
|
||||||
|
</HorizontalScrollView>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
Reference in New Issue
Block a user