其他语言/在MapView的语言环境(机器人) [英] Other languages/locales in MapView (android)

查看:150
本文介绍了其他语言/在MapView的语言环境(机器人)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何设置的MapView对象的Andr​​oid所以它会显示其他语言streetnames,如希伯来语?

Can anyone tell me how to set the mapview object in android so it will display streetnames in other languages, such as hebrew?

推荐答案

在做大量的研究和演奏后,各地,我发现该解决方案是非常简单的:
在MapActivity.onCreate方法,你可以用code的一行ovverride默认的语言环境,以下是希伯来文:

After doing much research and playing around I found that the solution is extremely simple: in your MapActivity.onCreate method you can ovverride the default locale with one line of code, the following is for hebrew:

Locale.setDefault(new Locale("iw","IL"));

这就是它。我已经在我的EVO 4G和Nexus One的验证了这一点。
请注意,这改变了区域设置为您的整个活动,所以如果你有他们会受到影响,以及任何本地化的资源。

Thats it. I have verified this on my Evo 4g and nexus one. Please note that this changed the locale for your entire activity so if you have any localized resources they will be affected as well.

希望这有助于。

这篇关于其他语言/在MapView的语言环境(机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆