I made a Horizontal RecyclerView and it works fine(thanks to this) but the direction of scroll and data are expand from left to right; then How can I change the RecyclerView
I have tried all above answers it's showing me same vertically recycler view, so I have tried another example.
Initialize the adapter
private Adapter mAdapter;
set the adapter like this
mAdapter = new Adapter();
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);
recycler_view.setLayoutManager(linearLayoutManager);
recycler_view.setAdapter(mAdapter);
Hope this will also work for you For Complete code please refer this link