whilu / AndroidTagView

A TagView library for Android. Customize your own & Drag effect.
1.71k stars 303 forks source link

sometimes click on tags not recognized! #32

Open yasaman93 opened 8 years ago

yasaman93 commented 8 years ago

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?

asadmukhtar28 commented 4 years ago

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

aliraza96 commented 2 years ago

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

tagContainerView.setIsTagViewClickable(true)

Solved perfectly.