AndroidTagGroup
AndroidTagGroup copied to clipboard
get Position
Any way to find click position ?
You can use an
private ArrayList<String> active_categories = new ArrayList<>(); mDefaultTagGroup.setTags(active_categories);
and check in your OnClickMethod
private TagGroup.OnTagClickListener mTagClickListener = new TagGroup.OnTagClickListener() {
@Override
public void onTagClick(TagGroup.TagView tagView, String tag) {
//TODO: do stuff
int index = active_categories.indexOf(tag)
}
};
Not elegant but a workaround as long as it is not implemented.