SwipeRefreshLayout+RecyclerView点击问题
SwipeRefreshLayout+RecyclerView点击问题
当我们使用SwipeRefreshLayout+RecyclerView的时候,会遇到点击事件无法响应,只有滑动后才能响应的问题。
解决办法:将SwipeRefreshLayout父布局ConstraintLayout替换为LinearLayout或者RelativeLayout。
修改前代码:
<androidx.constraintlayout.widget.ConstraintLayout
android:lay
原创
2020-08-31 08:38:57 ·
656 阅读 ·
2 评论