2014-04-02 83 views

回答

1
please follow below link it may be use full 

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

第1步: 亞美尼亞(值-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); 
    }