i have problem switching locale language while app is 开发者_如何学Cstill running, how to do that? Thanks. I have read lot of docs... and still do not find solution.
Sample code in Changing Locale within the app itself
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.
精彩评论