InflationX / ViewPump

View Inflation you can intercept.
Apache License 2.0
897 stars 61 forks source link

Store layout resId in view tag #16

Closed jbarr21 closed 6 years ago

jbarr21 commented 6 years ago

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.

jbarr21 commented 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.