how to use mutliple layouts in recyclerview
@Override
public int getItemViewType(int position) {
if(user_id_array.get(position).equals(user_one))
return 1;
else if(user_id_array.get(position).equals(user_two))
return 2;
else
return 3;
}