how to use Typeface.DEFAULT
时间: 2023-10-11 22:05:59 浏览: 50
Typeface.DEFAULT is a constant value that represents the default typeface of the system. To use it in your Android application, you can use the following code:
```
TextView textView = findViewById(R.id.textView);
textView.setTypeface(Typeface.DEFAULT);
```
This will set the default typeface for the text in the TextView. You can also use the Typeface.DEFAULT_BOLD constant to set the default bold typeface.