K
K
Kirill2018-03-19 19:38:57
Android
Kirill, 2018-03-19 19:38:57

The font is not displayed on the device, how to fix it?

In the Font folder there are 2 files with fonts amita.ttf, roboto. On the TextView via Design in the fontFamily field set the value @font/amita, in Design the font is displayed but not on the device, what could it be?
5aafe62129066967296470.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-03-19
@PainMain

In the designer api level 27. This is the api in which support for fonts in xml has appeared. The device probably works on an earlier version. Therefore, it doesn't work. You need to use the support library. https://developer.android.com/guide/topics/ui/look...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question