kaedea / kaedea/android-tagview

TagView is not initiated or not display and also get overlap

Open
#11 18 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
657
Forks
131
PR merge metrics
No merged PRs in 30d

Description

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.

I am adding tags as mention below:

```
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the footer behavior in the RecyclerView with the shown TagView setup, checking the initial scroll and the later scroll back to the footer. Confirm that the tags are displayed on the first visit and do not overlap; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.