InflationX / ViewPump

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

Question: can this library help with integration of translation SDKs, such as Lokalise ? #66

Closed AndroidDeveloperLB closed 1 year ago

AndroidDeveloperLB commented 3 years ago

I've noticed some edge cases that their SDK doesn't cover, such as inflation of Views (example is inflation via the class that extends Application, to show content on top using SAW permission) .

Could this library be used such that whenever the app needs to get an instance of Resources class, it would use the one of the SDK , including when inflating of Views ?

I ask because I've found this article, saying it might help:

https://jitinsharma.com/posts/taming-android-resources-and-layoutinflater-for-string-manipulation/?q=cache:NtfvHgBjYAgJ:https://jitinsharma.com/posts/taming-android-resources-and-layoutinflater-for-string-manipulation/%20&cd=19&hl=en&ct=clnk&gl=il

mtrakal commented 3 years ago

Lokalise SDK (2.0, don't know, how about 1.x...) internally uses ViewPump. So I think, that ViewPump can do the same as Lokalise...

AndroidDeveloperLB commented 3 years ago

@mtrakal They told me in support that they use this magic only for Activities. Not for other types of UIs (such as floating ones).

ZacSweers commented 1 year ago

Use discussions for questions like this