我能';在字体系列Android Studio中找不到无衬线介质

我能';在字体系列Android Studio中找不到无衬线介质,android,android-layout,textview,android-typeface,Android,Android Layout,Textview,Android Typeface,我遵循排版指南和这个链接 它说Android 4.1/4.2/5.0上有无衬线介质 但当我试图找到这些字体类型时,我似乎找不到建议。为什么 我必须下载这种字体的ttf文件吗 我的年龄是24岁 这样做可以使用无衬线字体 在styles.xml文件中,定义字体的样式 <style name="roboto_regular_textview" parent="@android:style/Widget.TextView"> <item name="android:

我遵循排版指南和这个链接

它说Android 4.1/4.2/5.0上有无衬线介质

但当我试图找到这些字体类型时,我似乎找不到建议。为什么

我必须下载这种字体的ttf文件吗


我的年龄是24岁

这样做可以使用无衬线字体

在styles.xml文件中,定义字体的样式

<style name="roboto_regular_textview" parent="@android:style/Widget.TextView">
        <item name="android:fontFamily">sans-serif</item>
    </style>

    <style name="roboto_medium_textview" parent="@android:style/Widget.TextView">
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textStyle">bold</item>
    </style>

    <style name="roboto_light_textview" parent="@android:style/Widget.TextView">
        <item name="android:fontFamily">sans-serif-light</item>
    </style>

无衬线
无衬线
大胆的
无衬线灯
和layout.xml文件中的

<TextView
                style="@style/roboto_regular_textview"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:textColor="@color/black_text_color"
                android:textSize="30sp" />

谢谢,无衬线介质似乎可以工作,但就是没有显示出来。不知道为什么。。。。