mRecyclerView.setAdapter(mAdapter);
//设置布局管理器,去除ScrollView嵌套RecyclerView卡顿问题
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(ZdqHuaTiDetailActivity.this, LinearLayoutManager.VERTICAL, false) {
@Override
public boolean canScrollVertically() {
return false;
}
};
mRecyclerView.setLayoutManager(linearLayoutManager);
这样的话,上下滑动就不卡顿了