I have Model Class Like this:
private String animalName, type;
public Model(){}
public Model(String animalName, String type){
this.animalName = animalName;
this.type = type;
}
//and getter and setters for all vars
And ArrayList<Model>();
according to my model class
so I want to check if my ArrayList<>()
contains a specific Type ie. herbivore
then add those animals according to their type in different ArrayList and I want to make CHOICE CHIPS
according to my type. here is an example of my app:
Note I am using RecyclerView to display Images
How Can I add That Choice Chips According to my Model Class and OnClick on any chips load shows Images according to that.
Any Solution is Appreciated.