繁体   English   中英

亚美尼亚语和索马里语/语言环境是否支持android和iOS?

[英]Is Armenian and Somali languages/locales support for android and IOS?

我的应用程序中要求对android和IOS都支持亚美尼亚语和索马里语,但我找不到与亚美尼亚语和索马里语有关的任何文档。如果有人知道这一点,请帮助我。

在此先感谢。

 please follow below link it may be use full

http://snowpard-android.blogspot.in/2013/03/programmatically-change-language-in.html

步骤1:为亚美尼亚人创建value文件夹(values-hy),例如:

 <string name="app_name">Հղրդգրթ</string>
 <string name="hello_world">Պարամետրեր</string>

第2步:根据您的要求,您应该编写以下代码

eg: mtextView1.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
            Locale locale = new Locale("hy");
            Locale.setDefault(locale);
            Configuration config = new Configuration();
            config.locale = locale;
            getBaseContext().getResources().updateConfiguration(config,
  getBaseContext().getResources().getDisplayMetrics());
            updateText();
        }
    });
  public void updateText(){
 mtextView1.setText(R.string.hello_world);
  }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM