hey i have a note 2 and i got the width from DisplayMetrics and it says it is 720 pixels and height is 1280 pixels
What is the device-width of the Samsung Galaxy Note II? [closed]
-
07-03-2022 - |
Вопрос
I cannot find the real device-width of the Samsung Galaxy Note II for web browsers, I found 3 different values as 320px, 480px and 640px but I'm not able to know which is the correct one.
By the way I found on Wikipedia the list of displays by pixel density but no device-width...
Edit: I'm looking for the web device-width declared in the mobile browser (viewport).
Решение
Другие советы
Have you seen this.?
http://developer.android.com/guide/practices/screens_support.html
They are
xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp
If you want to find it out programmatically just check out this question. Get screen dimensions in pixels
If not, you could ask over here: https://android.stackexchange.com/