Kotlin CustomView 2-way databinding onclick listener
I have one custom view that contains one container ( as ConstraintLayout ) and inside has one ImageView ( svg )
When i tap on it the custom view change his color ( active / inactive ). My custom view implements onTouchLister for state changed
I want to have one custom atribute and use it to find in witch state my custom view is. So i create this :
@InverseBindingMethods(InverseBindingMethod(type = CustomBoxImage::class, attribute = "cbi_is_selected"))
class CustomBoxImageSelectedBinding...