Closed jbarr21 closed 6 years ago
No, interceptors don't have the context of what layout inflated them. The interceptor is just in the context of tag name to view. Changing that would require the Layoutinflater to hold state which I do not think would be a wise choice.
Tagging a view with the layout resourceId used to inflate it could be useful for a variety of applications from displaying the information in Stetho to using the information in a ViewPump interceptor. This functionality is opt-in and disabled by default.