如何在我的 Android 应用程序中使用新的 Google Sans 字体?

ole*_*ikd 7 android android-fonts google-fonts

如何在我的 Android 应用程序中使用新的 Google 应用程序(例如“电话”、“联系人”和“Google Fit”)中看到的字体?textAppearance这有什么新的价值吗?这是所需字体(标题)的预览: 谷歌的新材质字体

据我所知,这种字体被称为“Google Sans”。

谢谢。

小智 -2

我也想知道如何使用它,但供个人使用。奇怪的是,我使用了这个,它工作得很好,尽管我拥有一个像素设备,并且很确定这不会在其他设备上工作。这是我用于 TextView 的内容:

    android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.Button"
Run Code Online (Sandbox Code Playgroud)