小编Nur*_*din的帖子

Android:如何将整个应用程序的数字格式更改为印地语格式(东方阿拉伯数字)?

像这样东方阿拉伯数字 {\xd9\xa0\xd9\xa1\xd9\xa2\xd9\xa3\xd9\xa4\xd9\xa5\xd9\xa6\xd9\xa7\xd9\xa8\xd9\xa9} \n我
使用此方法可以更改应用程序语言,但它不能完全显示印地语数字

\n\n
    Locale Language = new Locale("ar");    \n    Resources resources = context.getResources();    \n    DisplayMetrics displayMetrics = resources.getDisplayMetrics();   \n    Configuration conf = resources.getConfiguration();   \n    conf.locale= Language;   \n    Language.setDefault(Language);   \n    conf.setLayoutDirection(Language);   \n    resources.updateConfiguration(conf, displayMetrics);   \n
Run Code Online (Sandbox Code Playgroud)\n

android localization number-formatting

3
推荐指数
1
解决办法
2134
查看次数

标签 统计

android ×1

localization ×1

number-formatting ×1