In my application i am using recyclerview to display all contact list. I want two section in recyclerview.
Like one section is my application contact list and second
Let me try to propose a native solution.
You must have a list of Contacts with a flag of isFavourite like
private class Contacts{
private String name;
private String phoneNumber;
private boolean isFavourite;
}
sort that array on the basis of isFavourite and contactName like this
pass that list to your ContactRecyclerAdapter. and Use two different layouts for Header and Items like this