AndroidTagView icon indicating copy to clipboard operation
AndroidTagView copied to clipboard

sometimes click on tags not recognized!

Open yasaman93 opened this issue 8 years ago • 2 comments

I use this library in items of recyclerview and set onClickListener to each of tags : `mTagContainerLayout.setOnTagClickListener(new TagView.OnTagClickListener() {

@Override
public void onTagClick(int position, String text) {

}

@Override
public void onTagLongClick(final int position, String text) {
    
}

});`

My recyclerview items are cardViews and I set onClickListener to their cardview too.

My problem is sometimes when I click on tags, nothing happens and sometimes my code in onclickListener works! why?

yasaman93 avatar Nov 07 '16 08:11 yasaman93

I`m also facing this issue have you found any solution @yasaman93

asadmukhtar28 avatar Dec 06 '19 21:12 asadmukhtar28

Faced this exact same issue. I simply put this line below, before setting click listeners.

tagContainerView.setIsTagViewClickable(true)

Solved perfectly.

aliraza96 avatar Apr 01 '22 03:04 aliraza96