1

我正在开发一个需要支持两种语言Hindi/English的 Android 应用程序。我能够将整个应用程序 UI 转换为印地语,但问题是我不知道如何从 edittext 中获取印地语字符或字符串。

因为我以一般方式获取数据:

String userName=_userEdt.getText().toString();

但是用户名字符串在印地语模式下不包含任何数据。如何从edittext中获取हिन्दी之类的单词。

4

1 回答 1

0

Download the hindi font “mangal.ttf” supported file and copy it in your font folder, which is created in assets folder. Try this way for implementing multilingual support in app development.

于 2013-05-21T07:37:22.817 回答