I have a class Tag Model and i need to send List< TagModel> to another activity. If i implement parcelable then I have another custom object array list in its items. How to solve this problem?
public class TagModel {
int listing_count;
ArrayList<ListingsModel> listingsModel; //how to handle this list
String foodTypeName;
public int getListing_count() {
return listing_count;
}
public void setListing_count(int listing_count) {
this.listing_count = listing_count;
}
public String getFoodTypeName() {
return foodTypeName;
}
public void setFoodTypeName(String foodTypeName) {
this.foodTypeName = foodTypeName;
}
public ArrayList<ListingsModel> getListings() {
return listingsModel;
}
public void setListings(ArrayList<ListingsModel> listingsModel) {
this.listingsModel = listingsModel;
}
}