F1!我正在处理 android 应用程序的另一项活动,在此活动中,我在 8 个乌尔都语文本视图中应用了自定义字体,但显示此活动需要 12 到 15 秒,如果我删除自定义字体,则需要 1-2 秒使用默认字体显示此活动,但默认的 android urdu 语言字体不是很好。请记住,我从未在 .xml 文件中使用过任何字体活动。任何想法 ?
我的Java代码:
public class JismPics extends Activity {
TextView txtView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.jism_pics);
txtView = (TextView) findViewById(R.id.textResult);
Typeface myCustomFont = Typeface.createFromAsset(getAssets(), "fonts/noori.ttf");
txtView.setTypeface(myCustomFont);
}
}