As per Android Documentation RecyclerView
is the new way to organize the items in listview and to be displayed horizontally
Advantages:
- Since by using Recyclerview Adapter, ViewHolder pattern is
automatically implemented - Animation is easy to perform
- Many more features
More Information about RecyclerView
:
Sample:
Just add the below block to make the ListView
to horizontal from vertical
Code-snippet
LinearLayoutManager layoutManager= new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL, false);
mRecyclerView = (RecyclerView) findViewById(R.id.recycler_view);
mRecyclerView.setLayoutManager(layoutManager);