? I’m wondering what to do with include layout on xml referring a layout from another gradle module, when using databinding.
😶 3
f
Feri Nagy
01/31/2022, 9:19 PM
We did recently and it mostly Just Works ™️ . Using resources in XML via eg.
@layout/foo
works ok even across modules. If your databinding uses an expression with
R.layout.foo
, then you need to use a qualified name to R in other module (or a correct databinding import). Do you face a specific issue and see an error? Or just checking before even trying?
g
Guilherme Lima Pereira
02/01/2022, 12:31 AM
Yeah, I did a sample project and I realized there’s nothing wrong with non transisitve r classes + databinding, it may be something from my project. Btw, thanks for sharing your experience, it helped!