一、目前只限于6.0手机显示异常
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/company_recy"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
在外层添加 <RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
二、禁止recyclerView上下滑动
public class MyLayoutManager extends LinearLayoutManager {
private boolean isScrollEnabled = true;
public MyL