Samsung galaxy s5 and Samsung note4 fall under which dpi - android

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

Related

is galaxy s10 (xxxhdpi) scaled 4x or 3.5x?

https://material.io/resources/devices/ (which is not maintained anymore) has
3.5x for xxxhdpi google pixel xl
4x for xxxhdpi galaxy s8
https://material.io/blog/device-metrics lists only 4x for xxxhdpi
https://reactnative.dev/docs/pixelratio lists only 3.5x for xxxhdpi
So it's very confusing, galaxy s10 has 550ppi and falls into xxxhdpi
Is it 3.5x scaled or 4x scaled?
Is it different depending on whether we are on native android or react-native android?

Samsung Galaxy Note 8 Drawable Folder

I'm wondering what drawable directory the Samsung Galaxy Note 8 will pull from running Android apps?
The device is 521 ppi. xxhdpi is for ~480 ppi and xxxhdpi is for ~640 ppi, so I'm assuming it will be one or the other.
The Galaxy Note 8 is an xxhdpi device.

Screen size Compatibility with Samsung Galaxy S3 and Nexus One

I am trying to create an application that I want to run on both Samsung Galaxy S3 and the Nexus One. But later I came to know that both the devices comes in the normal screen size. How can I make the layouts that fits both the devices?
What type of folders should be created and any entry in the menifest for that folders..?
Samsung galaxy s3 - 4.8 inches(Normal screen)
Resolution - 720 * 1280
XHDPI
And
Nexus one -
3.7 inches(Normal)
480 * 800
HDPI
A single layout(normal) should be fine for both the devices . You can create different set of images for both as one is hdpi and other is xhdpi.
Edit : Adding the example table
MDPI X Large 10.1 inches 1280w * 800h(landscape) Samsung Tablet
MDPI Large 7 inches 1024h * 600w HTC Flyer
MDPI Large 7 inches 976h * 600 w Samsung GT P6620

What layout is suitable for 720x1280 Android devices?

I have developed a clock widget. And I only have 1 res/layout and 1 res/drawable. Everything works perfectly.
It works on mdpi like Samsung Galaxy Ace. It works on hdpi like Samsung Galaxy S2. It works on xhdpi like Samsung Galaxy Note.
However I got ugly look on 720x1280 devices such as Samsung Galaxy Nexus or Sony Xperia S. And coming soon Samsung Galaxy S3.
When I provide res/layout/xhdpi which I built specifically for 720x1280 devices and then Galaxy Note will also use this layout and it looks ugly on Galaxy Note.
How to address this issue?
It is like some crossing between 720x1280 (Galaxy Nexus, Sony Xperia S, Galaxy S3) and 800x1280 (Galaxy Note).
The resolution and DPI of the device don't necessarily match up (high resolution doesn't mean high DPI). DPI is a ratio of the resolution of the device and its physical dimensions.
Instead of separating your layout folders by DPI, separate them by dimensions. For instance, layout-large, layout-xlarge. You can also quantify by specific sizes, such as layout-w720-h1280, in which case that would match only device with a minimum width of 720 pixels and minimum height of 1280 pixels.
Use layout-sw320dp for Galaxy S3

Apps for all Samsung Galaxy Tabs, how to make drawable and layouts

I have Galaxy tab 10.1 inch and I have made app and test on it, it works fine.
Now my question is will this app work on Galaxy 7 inch, Galaxy 7.7 inch, Galaxy note and Galaxy 8.9 inch
here is the details of these devices:
(My Device) Galaxy tab 10.1 inch --> 800 x 1280 pixels, 10.1 inches (~149 ppi pixel density)
Galaxy 8.9 inch--> 800 x 1280 pixels, 8.9 inches (~170 ppi pixel density)
Galaxy 7.7 inch --> 800 x 1280 pixels, 7.7 inches (~196 ppi pixel density)
Galaxy 7 inch --> 600 x 1024 pixels, 7.0 inches (~170 ppi pixel density)
Galaxy Note --> 800 x 1280 pixels, 5.3 inches (~285 ppi pixel density)
Please tell me for which device I have to make layouts again and what will be the folder names for drawable and layout
for Galaxy 7 inch --> 600 x 1024 pixels, 7.0 inches (~170 ppi pixel density) you can make layout folder with name "layout-large-mdpi-1024x600"....but for other device i am also unable to sort correct
As long as you are using relative layout mechanisms, it wil be ok. If you want to test it yourself, you can start your application in emulators using different screen sizes. There is also a Galaxy Tab Emulator.
read
Multiple Screen Resolution Support
Found answer myself: In order to support maximum devices, we can try to make a general layout which fits for all device, there may be minor trade offs, but one can live with that. We can make such a layout by using Relative Layout as much as possible, if there comes a situation where you can not handle multiple device support, we can try handling it with code at run time, but in such a manner, that it runs on all device.
complete answer is here
Layout for 720*1280 devices

Categories

Resources