Hi George Mount,
I am trying to pass a viewModel into an <include> layout, however, it appears I can not use a <variable> type in the <include> layout which is the parent abstract class of the concrete viewModel.
I can’t get gradle to not crash unless I change the <include> <variable> type to be concrete (which defeats the purpose as I want to reuse the layout).
I’ve done this before in code, it was simple and painless. I suspect I might be running into a gradle issue?
If you could be so kind as to comment or show the usage of an abstract parent class for the <include> layout <variable> I’d be glad to confirm I’m not going crazy!
If it’s not in bad taste, I documented the issue further here:
https://stackoverflow.com/questions/45205003/data-binding-error-trying-to-pass-viewmodel-into-include-layout-with-abstract-va
I am really stuck on this one, been loving data binding for a year now otherwise! NEVER GOING TO FINDVIEWBYID() EVER!