I am building an app having three RecyclerView in one fragment to show horizontal list of items. i created a LinearLayoutManager object and set it to all three RecyclerView . but it crashes app, saying one LinearLayoutManager can attached to only one RecyclerView .why can't i attach to all although i need the same Properties. code is ..
LinearLayoutManager llm = new LinearLayoutManager(getActivity());
llm.setOrientation(LinearLayoutManager.HORIZONTAL);
recViewTopSell.setLayoutManager(llm);
recViewBrands.setLayoutManager(llm);
recViewCategory.setLayoutManager(llm);
error at
recViewBrands.setLayoutManager(llm);
recViewCategory.setLayoutManager(llm);