whilu / AndroidTagView

A TagView library for Android. Customize your own & Drag effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing Properties of a tag on click

SayakMukhopadhyay opened this issue · comments

I cannot find a way to change the properties of tag on clicking it.

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) {
            }

        })