Closed adrielcafe closed 5 years ago
Related to #16 .
With those new methods, addTag(int position, Tag tag) and replaceTag(int position, Tag tag), It's possible to update a tag style at any time.
addTag(int position, Tag tag)
replaceTag(int position, Tag tag)
Example of usage:
myTag.setOnTagClickListener((id, tag) -> { boolean selected = selectedTag.id != tag.id; int position = getTagPosition(tag); updateTagState(tag, selected); myTag.replaceTag(position, tag); });
Related to #16 .
With those new methods,
addTag(int position, Tag tag)
andreplaceTag(int position, Tag tag)
, It's possible to update a tag style at any time.Example of usage: