Android: using material design textappearance with custom font?

If I define a textview with a custom font in my xml, what will happen if I add the textappearance tag for material design? Will the font be changed to Roboto or will it stay a custom font and only the textsize will change?

<com.myproject.whatever.customFontTextView
        android:id="@+id/someId"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/someText"
        android:textAppearance="@android:style/TextAppearance.Material.Headline"
        android:layout_gravity="center_horizontal"
        android:gravity="center"
        android:textColor="@color/someColor"
        android:layout_marginTop="10dp"
        />


Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.