if(!listResponse.getIs_favourite()) holder.img_heart.setImageResource(R.mipmap.heart); else holder.img_heart.setImageResource(R.mipmap.heart_fill);
if(!data.getIs_favourite()) { img_heart.setImageResource(R.mipmap.heart); img_heart.setTag(R.mipmap.heart); }else{ img_heart.setImageResource(R.mipmap.heart_fill); img_heart.setTag(R.mipmap.heart_fill); }
No comments:
Post a Comment