Scrollview嵌套Recyclerview嵌套滑動衝突,致使滑動時會出現卡頓的現象

 1 recyclerView.setLayoutManager(new GridLayoutManager(mContext,2){  2  @Override  3     public boolean canScrollVertically() {  4         return false;  5  }  6 
 7  @Override  8     public boolean canScrollHorizontally() {  9         return super.canScrollHorizontally(); 10  } 11 });

 

 

 

1 recyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayout.VERTICAL,false){ 2  @Override 3     public boolean canScrollVertically() { 4         return false; 5  } 6 });
相關文章
相關標籤/搜索