Text with custom font and bold style

后端 未结 5 1385
春和景丽
春和景丽 2021-01-06 06:21

I am developing an application. I am using custom font. \".ttf\" file to customize font of text view. I used the code as:

Typeface tfArchitectsDaughter = Typ         


        
5条回答
  •  失恋的感觉
    2021-01-06 06:38

    Use the code for making text bold as :

    TextView.setTextAppearance(getApplicationContext(), R.style.boldText);
    

提交回复
热议问题