This commit is contained in:
Horis
2025-03-09 10:50:01 +08:00
parent 68349a01be
commit 698efc29c8
3 changed files with 2 additions and 15 deletions

View File

@@ -11,10 +11,6 @@ class NoChildScrollNestedScrollView @JvmOverloads constructor(
attrs: AttributeSet? = null,
) : NestedScrollView(context, attrs) {
override fun requestChildFocus(child: View?, focused: View?) {
// do nothing
}
override fun requestChildRectangleOnScreen(
child: View,
rectangle: Rect?,

View File

@@ -8,15 +8,6 @@ import androidx.recyclerview.widget.RecyclerView
class NoChildScrollLinearLayoutManager(context: Context) : LinearLayoutManager(context) {
override fun onRequestChildFocus(
parent: RecyclerView,
state: RecyclerView.State,
child: View,
focused: View?
): Boolean {
return true
}
override fun requestChildRectangleOnScreen(
parent: RecyclerView,
child: View,

View File

@@ -61,7 +61,7 @@
</LinearLayout>
</LinearLayout>
<ScrollView
<io.legado.app.ui.widget.NoChildScrollNestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -154,6 +154,6 @@
</io.legado.app.ui.widget.text.TextInputLayout>
</LinearLayout>
</ScrollView>
</io.legado.app.ui.widget.NoChildScrollNestedScrollView>
</LinearLayout>