这个在xml中设置字体只能是系统内置的几种字体,如monospace、sans、serif等,设置方法:android:typeface="monospace"但是要是想设置自定义的、放在assert目录下的字体的话,只能在代码中去设置了:如:Typeface font=Typeface.createFromAsset(this.getAssets(),"fonts/YourCustomFont.ttf");textView.setTypeface(font);