解决方案 »

  1.   

    private void ChangeFonts(ViewGroup root) {
    for (int i = 0; i < root.getChildCount(); i++) {
    View v = root.getChildAt(i);
    if (v instanceof TextView) {
    ((TextView) v).setTypeface(tf);
    } else if (v instanceof Button) {
    ((Button) v).setTypeface(tf);
    } else if (v instanceof EditText) {
    ((EditText) v).setTypeface(tf);
    } else if (v instanceof ViewGroup) {
    ChangeFonts((ViewGroup) v);
    }
    }
    }
    oncreate 里
    tf = Typeface.createFromAsset(LinkBet.this.getAssets(),
    "fonts/UKIJTuT.ttf");类的变量private Typeface tf;// 字体
      

  2.   

    就是在工程asset目录下建个fonts目录里面加维吾尔字体.ttf文件,然后让控件的typeface设置成这个字体,对了,我用的是UKIJTuT.ttf,然后oncreate下再加
    ChangeFonts((ViewGroup) this.getWindow().getDecorView()); // 改变字体