D
D
diamondkesha2021-10-19 20:46:34
Android
diamondkesha, 2021-10-19 20:46:34

How to calculate font size for different screen resolutions of Android apps?

I want to make the font size look the same on all screen resolutions. How can I make 14 font size look the same on a large (xxhdpi) screen as it does on a small (hdpi)? How many pixels need to be added? I would like to know the formula, if there is one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacen11, 2021-10-19
@diamondkesha

oh, have you tried reading the first ten pages of any book on android? The dp indicates the size for this and it is mentioned almost immediately in the books. But in general it is better to specify just in sp so that the text is scaled depending on the smart settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question