What about just disabling the Lint processing for this 'unused' issue? Click on the yellow warning and fix it by adding a lint-disabling comment to the method. This will remove the warning.
On Saturday, May 14, 2016 at 10:47:33 AM UTC-4, Mike Hurley wrote: > > Here are the versions I'm using: > Android Studio 2.1.1 > Kotlin 1.0.2 > Android databinding 1.1 > > I currently have an annoyance in Android Studio with Kotlin and > databinding. A method bound to a button's onClick event is showing up in > the gutter as a yellow warning saying the method isn't used. Is this a > general databinding problem for all languages or is this an issue with the > Kotlin plugin? Are there any JVM or Kotlin annotations I can use to mark > the method as "used"? Any other ideas? > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/f1604e76-1fdf-4932-bbaa-91bc9d707727%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

