Can I make the RecyclerView row items to allow horizontally scrolling? Each item (card layout for example or any other) is a category item and each category has multiple items that can be scrolled on horizontal...
Asked
Active
Viewed 5,496 times
1
-
3try http://stackoverflow.com/questions/27077878/how-to-create-scrollable-page-of-carousels-in-android/27311842#27311842 – Mohammad Hossein Gerami Nov 04 '15 at 12:16
-
+ MHossein - please leave a reply to accept you – Alexandru Circus Nov 04 '15 at 12:19
-
Possible duplicate of [How to create scrollable page of carousels in Android?](https://stackoverflow.com/questions/27077878/how-to-create-scrollable-page-of-carousels-in-android) – Eefret May 31 '17 at 14:55
2 Answers
1
I suggested you try this question. for myself is usefull. you must using in every row a Horizontal Recyclerview.

Community
- 1
- 1

Mohammad Hossein Gerami
- 1,360
- 1
- 10
- 26
-
If another question has an answer that fits perfectly to this one, you are supposed to flag it as a duplicate of that one or to vote to close it, not to answer it with a link only. – Adinia Nov 04 '15 at 12:41
-1
set Orientation to RecyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
recyclerView.setAdapter(myAdapter = new MyAdapter(getBaseContext(), myData, myLayout);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
// for horizontal
linearLayoutManager.setOrientation(LinearLayout.HORIZONTAL);
// for vertical
linearLayoutManager.setOrientation(LinearLayout.VERTICAL);
recyclerView.setLayoutManager(linearLayoutManager);

rajahsekar
- 916
- 1
- 11
- 25
-
i think he means that the recycler view should scroll vertically, but each item can be independently scrolled horizontally – marmor Nov 04 '15 at 12:20
-
1In that case we have to take two RecylerViews one is parent Vertical orientation and second is child Horizontal orientation – rajahsekar Nov 04 '15 at 12:30