V
V
vladocc2015-10-30 14:01:05
Android
vladocc, 2015-10-30 14:01:05

How to connect custom font in android?

Greetings!
Tell me how to connect fonts in an Android application.
There is an application consisting of buttons. Text on buttons. You need to write it in a custom font.
Next, see the screenshots of what I tried:
Explain what I'm wrong. On the Internet it was possible to find only semi-finished knowledge similar to this, unfortunately.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vladocc, 2015-10-30
@vladocc

The site treacherously refuses to load screenshots. Here are links to them:
prnt.sc/8x0awi
prnt.sc/8x0avb

D
Dmitry Bolshakov, 2015-10-30
@enq3

The assets folder should be in Project\app\src\main\
prntscr.com/8x16ri

O
Oleg Gamega, 2015-10-30
@gadfi

In the markup file, fontView is Button, in the code you look for it as TextView
Next, most likely you need a lot of buttons, implement your button, which will contain the fonts you need, so as not to play like this for each button in the code, but it's up to you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question