Join Slack
Powered by
I’m not familiar with the binding adapter, but if ...
# android
a
Allan Wang
01/06/2019, 11:44 PM
I’m not familiar with the binding adapter, but if it doesn’t support kotlin directly, consider just making a global function and annotate it with
@JvmStatic
. See
https://stackoverflow.com/questions/37075871/can-i-bind-an-error-message-to-a-textinputlayout
g
gildor
01/09/2019, 9:52 AM
@alle.iacob
This is not required for bindings and defining binding adapter as extension function for view is just fine, it's quite idiomatic Imo and works with bindings
Open in Slack
Previous
Next