I'm trying to use the databinding library with a recyclerview
with multiple viewholders (with shared elements).
I tried solutions that involve casting and generics. Neither worked.
Is there a way to relate different ViewDataBinding
classes that link similar xml
layouts such that they have a sibling relationship?
Or, Is there a way to do inheritance in xml
? I figure since the ViewDataBinding
objects are generated (in part) by the xml
, maybe parent and children xml
layouts could produce the desired effects?