> I want to make my android project Internationalization,but i don't
> know how to achieve it.
> I have searched on the internet,and just know i have to make values-xx
> file in \res.I want to know what should i do about the code.

Close.

You do not create values-xx files, you create values-xx directories:

res/values-es
res/values-fr
res/values-de
res/values (default, perhaps English)

Your code, in theory, does not need to change at all -- Android will
choose the right strings out of the strings.xml files in those
directories.

You *might* have to change your UI layouts somewhat if the translated
strings are significantly longer than the space you had set aside.
TextView's android:marquee attribute can help with this, by animating a
selected TextView to show a longer string in its entirety in a smaller
space.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
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