优化
This commit is contained in:
1 parent
d2d586834c
commit
8ca7c54f06
3 files changed
+2
-15
No files matched your search
@@ -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?,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user