Emir Zaimovich
Emir Zaimovich

Reputation: 3

Android, costum localisation while running app

i have problem switching locale language while app is still running, how to do that? Thanks. I have read lot of docs... and still do not find solution.

Upvotes: 0

Views: 457

Answers (2)

Vladislav Zorov
Vladislav Zorov

Reputation: 3056

Be careful, changing the locale on the fly isn't officially supported! You have to take care of refreshing every text yourself! In my case, as I don't have many UI elements, I just did button1.setText(R.string.hello); button2.setText(R.string.bye); after chaning the locale.

Upvotes: 0

Vincent Mimoun-Prat
Vincent Mimoun-Prat

Reputation: 28561

Sample code in Changing Locale within the app itself

Upvotes: 1

Related Questions