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

Android: how to change number format to Hindi-format (Eastern Arabic numerals) for the whole application?

就像东方阿拉伯数字 {٠١٢٣٤٥٦٧٨٩}
我使用此方法更改应用程序语言,但无法完全显示印地语数字

    Locale Language = new Locale("ar");    
    Resources resources = context.getResources();    
    DisplayMetrics displayMetrics = resources.getDisplayMetrics();   
    Configuration conf = resources.getConfiguration();   
    conf.locale= Language;   
    Language.setDefault(Language);   
    conf.setLayoutDirection(Language);   
    resources.updateConfiguration(conf, displayMetrics);   

与所有与 i18n 相关的内容一样,应用程序必须以允许本地化的方式编写。

例如,Integer.toString(i) 将始终使用数字 0-9。要获得本地化数字,您必须使用 String.format("%d", i)NumberFormat.getInstance().format(i)