1

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...

Alexandru Circus
  • 5,478
  • 7
  • 52
  • 89

2 Answers2

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
  • 1
    In 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