Can anyone tell me which Drawable does Nexus 6 and Nexus 9 support xxhdpi or xxxhdpi? I also want to whether Nexus 6 supports large- hdpi or anything else?
I searched in google but found no luck?
Thanks.
from http://android-developers.blogspot.com/2014/10/getting-your-apps-ready-for-nexus-6-and.html
Nexus 6 has a quantized density of 560 dpi, which falls in between the
xxhdpi and xxxhdpi primary density buckets.
For the Nexus 6, the platform will scale down xxxhdpi assets, but if
those aren’t available, then it will scale up xxhdpi assets.
drawable-xxxhdpi/ # Higher resolution assets for Nexus 6
The Nexus 9 is a premium 8.9” tablet with a screen size of 2048 x 1536
pixels (288 ppi), which translates to 1024 x 768 dip. This is a 4:3
aspect ratio, which is unique compared to earlier tablets. The Nexus 9
falls into the xhdpi density bucket, and you should already have
assets in the drawable-xhdpi folder.
Nexus 6 is under the xxxhdpi device category just like the Nexus 6P,
Nexus 9 comes under the xhdpi category.
Source: https://design.google.com/devices/
Related
Is there a way to create a drawable folder and a values folder to 420 dpi and 560 dpi devices? One for the 420 dpi and one for 560 dpi.
420dpi: Samsung Galaxy S5, S4, LG G5, ...
560dpi: Nexus 6, Samsung S6, S7, ...
Because in those type of devices my app not looks well. Images in drawable-xxhdpi are smaller in a device with 420 dpi. Because multiplies the width of the image x 2,625 (density). I need bigger images or multiply images x 3.
The solution that I've found is to create a drawable-420dpi and a drawable-560dpi folder and copy xxhdpi and xxxhdpi resources respectively.
I'm not sure that this is the best solution but It works on PIXEL XL, Nexus 5X, 6 and 6p simulators.
This is very frustrating for developers and designers too.
If you using Android Studio, you can easily create a folder width name: mipmap-420dpi and mipmap-560dpi in the folder that same with folders as mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi .... You can see this picture
You can get ppi using DisplayMetrics and after getting ppi you can use IF condition and set that drawable that you need to set.
So, as far as I know, we can use next formula:
density = SQRT(width*width+height*height)/screen_size.
For example, Nexus 6 (6.0", 1_440*2_560) should give 490 dpi (approx.), but Android Studio Preview screen shows this device with 560 dpi.
What am I missing?
Although each device has its own screen density, Android includes the device into the nearest density "bucket":
420 dpi
560 dpi
xhdpi
xxhdpi
As seen in Android Studio:
Although the Nexus 6 and 6P have different physical screen densities, the same drawable resource will be used for both devices.
About the Nexus 6, the manufacturer density is 560 but the physical density is about 493. Always think about the manufacturer density before think scale factor.
Samsung Galaxy s6 has a screen density of 577 ppi which maps to xxhdpi - xxxhdpi
Screen resolution: 1440 X 2560
Samsung Galaxy S3 has a screen density of 306 ppi which maps to xhdpi
Screen resolution: 720 X 1280
My app with a lot of scenic images was developed against xhdpi-devices (i.e. S3)
but to have margins against the future the images has a resolution of:
Image resolution: 1300 X 1950
So - what happends with images with this resolution when put in a xxxhdpi device such as Galaxy S6? I compiled the app against an S6 and cannot see any
difference. Is this because the images are in the xhdpi-folder and s6 thanks to
this does not use the full density of 577 ppi? My theory - IF it have used the
full capacity - the images whould have been stretched out since the width is 1300 px and the screenwidht of S6 is 1440.
Greatful for answers
EDIT: the images uses the whole screenwidth.
Are there xxxhdpi density devices?
Android devices screen density increases (see https://github.com/paulvi/displayclasses) and there are already devices with density higher than xxhdpi (extra-extra-high) ~480dpi
like Samsung Galaxy S6 577 2560 1440
(But I cannot check if it is really xxxhdpi)
Is it time to prepare 192x192 icons?
(4x times 48x48 dp, see http://developer.android.com/design/style/iconography.html )
See also Android Official Icons for XXHDPI and XXXHDPI
UPDATE: Was asked a year before as Android xxx-hdpi real devices
Also Nexus 6 and Nexus 9 Screen density
Just for reference purpose, now Google maintain a list of devices density and other information at https://design.google.com/devices/ which is mainly targeted for material design guideline.
Are there xxxhdpi density devices?
Afaik Nexus 6 is xxxhdpi device
New phones already use XXXHDPI.
Our test phone Samsung S6 Edge use xxxhdpi drawable resources. Someone already mentioned that Nexus 6 also using this dimension. Thus new phones with good screen should use this dimension.
xxxhdpi density devices Resolutions :
2048x1536
2560x1536
2560x1600
In Nexus 6
For more help :
http://developer.android.com/guide/practices/screens_support.html
Actually, no, even as of 2016, there are still no xxxhdpi device.
The largest resolution on Android device is used by Xperia Z5 Premium (4k on 5.5", or roughly 806ppi), and even on that device, it was only used that humongous screen density for multimedia contents. The UI itself was rendered by halving the effective density by two, so it actually scales down from 4k to full HD on 5.5", or xxhdpi.
Specs for Xperia Z5 Premium : http://www.gsmarena.com/sony_xperia_z5_premium-7536.php
I found 8 corresponding devices here.
My Samsung S22, released in February 25, 2022, has a 600 dpi when resolution is set to its highest (3088 x 1440), and more importantly, it loads xxhdpi resources, which means that we aren't there yet in terms of smartphones with 640 DPI or more screen density, and even if your phone contains 600 dpi like my S22 does, which is just 40 dpi shy off 640, it'll still load the 480 dpi (xxhdpi) resources.
I guess we'll get to 640 dpi in a year or two, I also expect the AOSP to add a xxxxhdpi to the source code very soon just as xxxhdpi was added in 2013, long before any 640 dpi handset was released.
I need info about under which dpis both Samsung Galaxy s5 and Samsung note 4 like do they come under xxhdpi or xhdpi or hdpi ?
S5 :
xxhdpi (~432 ppi pixel density)
note 4 :
technically it is DENSITY_560 since it has ~515 ppi pixel density ,
but you should target xxxhdpi and let the android resources system scale images down for you like the nexus 6