I have added tagview to my recyclerview's footer. I am facing issue like, when I scroll to down. initially tags that is in the footer is not going to display. But then I scroll a little bit to up direction and again come back to footer, it show me the tags. I dont know where is the issue.
for(int i = 0; i < mStory.getTags().size(); i++) {
footerHolder.tagView.removeAllTags();
Tag tag = new Tag(mStory.getTags().get(i).getName());
tag.layoutBorderSize = 2f;
tag.layoutBorderColor = ContextCompat.getColor(mContext
, R.color.my_theme_primary);
tag.tagTextColor = ContextCompat.getColor(mContext
, R.color.my_theme_primary_text);
tag.background = ContextCompat.getDrawable(mContext,R.drawable.bg_tag);
footerHolder.tagView.addTag(tag);
}
footerHolder.tagView.setOnTagClickListener(new OnTagClickListener() {
@Override
public void onTagClick(Tag tag, int position) {
Toast.makeText(mContext, "position=" + position,
Toast.LENGTH_SHORT).show();
}
});
My code is proper in footer because other view that I have mention in footer looks fine with even initial scrolling. But Tags is not getting displayed when scroll initial.
Please share solution to that with me.