0
我在我的主要活動2 RecyclerView
s:一個是水平的,另一個是垂直的。我的問題是,當我在第二個回收站中向下滾動時,我想讓上方的回收站也滾動,但不是。它保持固定。當滾動第二個時滾動RecyclerView
這是我的代碼:
recyclerView = (RecyclerView) findViewById(R.id.recyclerview1);
recylerViewLayoutManager = new LinearLayoutManager(context,LinearLayoutManager.HORIZONTAL,false);
recyclerView.setLayoutManager(recylerViewLayoutManager);
recyclerViewAdapter = new RecyclerViewAdapter(MainActivity.this, subjects,images);
recyclerView.setAdapter(recyclerViewAdapter);
MainGridRecView = (RecyclerView) findViewById(R.id.maingridrc);
MainGridRecViewLayoutManager = new GridLayoutManager(context,2);
MainGridRecView.setLayoutManager(MainGridRecViewLayoutManager);
MainGridRecViewAdapter = new MainGridRecyclerViewAdapter(MainActivity.this, subjects,images);
MainGridRecView.setAdapter(MainGridRecViewAdapter);
我有一個連接問題,我不能發佈我的完整問題無論如何生病嘗試這個,如果它不qork病解釋更多 – Moudiz