Is that layout actually inflated? I would think that wouldn’t be the best approach. Like if I have a lib module and I was to access its layouts views, than it should exposed via that actual module. perhaps via getter/setter properties
rkeazor
06/21/2018, 4:05 PM
never the less, I think it will also depend if both modules have applied the plugin or have the right visibility scope. than you can probably do viewFromModule.[the binded view you want]
@rkeazor in this case, I’m writing an Adapter for a RecyclerView, so I’m addressing instances of views, rather than views as local variables.
Seri
06/21/2018, 4:24 PM
Calling them as
itemView.name.text
works fine
Seri
06/21/2018, 4:24 PM
Either way, I’ve flattened that module out and into the main module and its working fine. Thanks again, @pdegand!
r
rkeazor
06/21/2018, 4:37 PM
but shouldn’t that be address via <dataSet> ? maybe I’m misreading what your saying lol. Glad you figured it out. Also be careful I think that view caching isn’t available outside of the activity or fragment. It was an experimental feature last time I checked