1. 在res 下建 font文件夹放字体

2.
<TextView
android:id="@+id/txt_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:fontFamily="@font/notoserifjp-regular"/>
本文介绍如何在Android项目中使用自定义字体,通过在res目录下创建font文件夹并放置字体文件,然后在XML布局文件中引用这些字体,实现TextView等控件的字体样式自定义。
3881





