how to set two columns recyclerview?
If i understand correctly, you want to have the items in your recyclerview able to show in two columns. Try adding this when you set layoutManager
recyclerView.setLayoutManager(new GridLayoutManager(this, 2));
Set from xml
file add two property in RecyclerView
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="2"