I connected the fonts in my project, in the development environment a new Google fonts are displayed enter image description here and on my device (API 25) the fonts remain standard

<TextView android:id="@+id/message" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical|fill_vertical" android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginLeft="@dimen/activity_horizontal_margin" android:layout_marginTop="@dimen/activity_vertical_margin" android:layout_weight="1" android:text="@string/title_home" android:textSize="16sp" app:fontFamily="@font/orbitron_black" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> 

enter image description here

enter image description here

  • Why, well, why do you insert such a large screenshot? Is it difficult to cut the desired part? - Enikeyschik
  • More information is required. Show markup code, text. Show how you connected the fonts (folder structure, perhaps xml files in the resources), whether the support library was connected and if so, which one. - Yuriy SPb
  • @YuriySPb structure and how I connect, I threw off, the font itself downloaded through android studio - Vadim
  • Try changing the app:fontFamily to android:fontFamily . And show the contents of build.gradle - maybe your library is not connected at all. - Yuriy SPb pm
  • one
    @Vadim, then try replacing TextView with android.support.v7.widget.AppCompatTextView and returning the app:fontFamily - YuriSPb 5:58 pm

1 answer 1

In this particular case, changing the class from TextView to android.support.v7.widget.AppCompatTextView should help. Although in theory, it should itself be replaced when using the library of support.