Home » Java » BindingMethods for overloaded methods?

BindingMethods for overloaded methods?

Posted by: admin October 26, 2017 Leave a comment

Questions:

Say I have methods like

setImageTintList(ColorStateList)

and

setImageTintList(ColorStateList, boolean) 

Normally I would set binding methods like

@BindingMethods({
   @BindingMethod(type = "android.widget.ImageView",
                  attribute = "android:tint",
                  method = "setImageTintList"),
})

How would I do the same for setImageTintList(ColorStateList, boolean)?

NOTE: The methods I mentioned are just for setting an example, taken from the documentation.

Answers: