I am facing a strange error where recyclerview is showing only a single item. Below is code for my recyclerview adapter :
public class ChatAdapter extends Re
1) if your recyclerview is vertical then set height of recyclerview match_parent and row_item.xml height also match_parent
match_parent
row_item.xml
2) if your recyclerview is horizontal then set Width of recyclerview match_parent and row_item.xml Width also match_parent
for ex:- Horizontal RecyclerView