Can localization resources be downloaded in runtime?
Now I can see only solution:
- Create some "localization proxy" that will return me necessary resource (from
string.xml
or downloaded resource) - Replace all
getString()
andgetText()
to your own methodgetStringFromLocalization
- Override
TextView
,Button
and some other views with custom one and change there init andsetText
methods.
You obviously cannot change, download or remove strings.xml
at runtime
If you want to store locations, you will have to use SQLite storage to store translations.
similar:
How to modify strings.xml file at runtime
run time modification of strings.xml