Its actually not quite that bad, although nearly. You can create a new
create a new resources object, passing in the proper configuration
object to access all the resources for whatever configuration you
want. However, you'll then need to write the code to swap out the
appropriate resources. So, if you inflate a TextView that has
android:text set to a resource string, you'll need to load the
corresponding string from your custom Resources object.

Cheers,
Justin
Android Team @ Google

On Sep 18, 10:25 am, "[email protected]"
<[email protected]> wrote:
> I readhttp://developer.android.com/guide/topics/resources/resources-i18n.html.
> But it shows how to localize your app for the currently selected
> locale of the phone. However, I want to add a "language" option into
> my own app, and allow the user to switch the UI language independent
> of the phone's locale setting.
>
> My currently solution is to manage a string table myself, and
> dynamically edit the text string of every UI element. However, this is
> rather tedious. Is there a better way?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to