S
S
Sasha Brahms2016-07-28 17:58:32
Android
Sasha Brahms, 2016-07-28 17:58:32

Mobile and tablet screen sizes?

Hello.
I don’t quite understand about screens ..
If I put a layout in ps, 1080x1920, does that mean it is in xxhdpi ?

mobile

0.75 ldpi = 240x320
1 mdpi = 360х640 (320х480)
1.5 hdpi = 540х960 (480х640)
2 xhdpi = 720х1280 (640х960)
3 xxhdpi = 1080х1920
--------------------------------------------------------------------------------------
tablet

0.75 ldpi = 540x960
1 mdpi = 720x1280 (768х1280)
1.5 hdpi = 540х960 (480х640)
2 xhdpi = 1080х1920
3 xxhdpi = 1440x2560 (1536x2048)

It's right?
And I don’t really understand how on tablets xxhdpi 1440x2560, more precisely where to shove the icon in xxhdpi for tablets?
I will be very grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ershov, 2016-08-04
@alaershov

The pixel density on the screen is determined not only by the resolution, but also by the screen size.
For example, if the 1080x1920 layout is designed for a 5" Nexus 5 screen, then yes, it's xxhdpi. And if you were counting on a huge tablet, then the pixel density will be lower.
Read the official documentation about screen sizes: https://developer.android.com/guide/practices/scre...
To convert different sizes, it is convenient to use tools like this: https://pixplicity.com/dp-px-converter/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question