Changing Properties of a tag on click
SayakMukhopadhyay opened this issue · comments
Sayak Mukhopadhyay commented
I cannot find a way to change the properties of tag on clicking it.
Asad Mukhtar commented
What kind of properties you want to change?
I done this task like this
binding.tagsView.setOnTagClickListener(object : TagView.OnTagClickListener {
override fun onSelectedTagDrag(position: Int, text: String?) {
}
override fun onTagLongClick(position: Int, text: String?) {
}
override fun onTagClick(position: Int, text: String?) {
binding.tagsView.getTagView(position).tagBackgroundColor = Color.GREEN
}
override fun onTagCrossClick(position: Int) {
}
})