我想爲我的項目分配一個不同的字體。 我希望新的字體是適用於整個項目,但我覺得是對字體更改爲一個TextViewandroid項目中的自定義字體
Typeface font1 = Typeface.createFromAsset(getAssets(), "fonts/RockFont.ttf");
TextView customText1 = (TextView)findViewById(R.id.text1);
customText1.setTypeface(font1);
customText1.setTextSize(40.f);
customText1.setText("Hello! This is a custom font...");
有任何方式默認爲整個項目自定義字體? 最好的方面