Reputation: 656
I will get localized data dynamically only.
Is there a way to update strings.xml
file at runtime in Android? Can we add new string to the file at runtime?
Upvotes: 5
Views: 5841
Reputation: 39604
Can we add new string to the file at runtime?
No. You can create a database of translations and maintain that database. Add new translations on the fly to the database and read the values from there.
Upvotes: 6