Localization 在Android中无法正确呈现印地语字符
我想用安卓系统测试印度语的本地化。 以下是values文件夹中的文件string.xmlLocalization 在Android中无法正确呈现印地语字符,localization,rendering,Localization,Rendering,我想用安卓系统测试印度语的本地化。 以下是values文件夹中的文件string.xml नमस्ते परिक्षण 我正在使用AndroidHindi.ttf字体 我想在adnroid中用印地语显示特定的文本,但在运行时,我得到了未渲染的文本 要正确显示它,我应该包括哪个特定的库。您必须下载您的语言字体文件(.ttf)并放入资产文件夹 Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");
नमस्ते
परिक्षण
我正在使用AndroidHindi.ttf字体
我想在adnroid中用印地语显示特定的文本,但在运行时,我得到了未渲染的文本
要正确显示它,我应该包括哪个特定的库。您必须下载您的语言字体文件(.ttf)并放入资产文件夹
Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf);
tv.setText("Seasonal messages like welcome (நல்வரவு) is used in Kolam. Volunteering to draw kolam at temple is sometimes done when a devotee's");
Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf);
tv.setText("Seasonal messages like welcome (நல்வரவு) is used in Kolam. Volunteering to draw kolam at temple is sometimes done when a devotee's");