Questions tagged [android-resolution]

The screen resolution of an Android device

100 questions
1
vote
2 answers

Android | Why do activity look different on two different phones with same resolution as well as same screen size?

Scenario I am developing a random app and recently i encountered a problem. I run a same application on Google pixel 3a xl android emulator and Asus X00TD physical device. And I got to know that in asus phone UI got really changed. Pixel 3a XL…
1
vote
3 answers

How do I know which resources will be loaded for my device?

If I have any device at hand, how can I know which resources will be used by my apk? e.g. drawable-hdpi or drawable-xhdpi or drawable-xxhdpi I am not asking in theory which of these folders is loaded when but specifically if I have a random device…
1
vote
1 answer

Android layouts - Would it be reasonable to create more Layout Folders than sw320, sw480 sw600 sw720 sizes?

In order to support different screen sizes in an Android App, I have created different layout versions: sw320, sw480 sw600 sw720 But I notice that many mobile smartphones takes the version of sw320 while they do represent the page differently. For…
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
1
vote
1 answer

How to design for Multiple resolution in same density range in android

In the xhdpi density range There are multiple resolution devices like Nexus 7 with 1200 X 1920 pixel resolution which comes under xhdpi and Nexus 9 with 2048 X 1536 pixel resolution which also comes under xhdpi samsung galexy note pro has 2560 x…
George Thomas
  • 4,566
  • 5
  • 30
  • 65
1
vote
1 answer

Do I really need small icons when I've provided an icon for xxxhdpi in android?

I'm very confused about various icon sizes required in android. Do I really need to have smaller icons for xxhdpi,xhdpi,hdpi,mdi if I've provided an icon for xxxhdpi and I want to show same icon for every resolution? Since we are playing in dp why…
Heisenberg
  • 5,514
  • 2
  • 32
  • 43
1
vote
2 answers

What is the resolution of default layout in Android?

I am just using simple default layout and not adding any of these layout versions; l-dpi-Layout,m-dpi-layout etc.. then what exactly the resolution of my default layout is? Let say i add an image and define its width-height as 20dp X 20dp. This…
1
vote
1 answer

How does android manages different DPI

I have read documentation, extract data from other sources as well, but unable to understand this very basic thing. In android we use DP, because its responsive and it stretches resources with respect to the screen sizes. My question is there are…
1
vote
1 answer

setting up dimens Nexus 5

my project currently just has one dimens file.. I know all my dimens look good on a nexus 5 which i believe has a dpi of 445 and a dpx of 3. My question is does that make it mdpi, hdpi, xhdpi? I am asking as i want to use this as the standard when…
erik
  • 4,946
  • 13
  • 70
  • 120
1
vote
1 answer

Get drawable for different screen density at runtime

I want to print sizes of all drawables at run-time. So if I am on hdpi device then I can print the size of hdpi drawables but how to get access to, lets say mdpi and xhdpi as well? I can get access to all drawables resource ids with following…
M-Wajeeh
  • 17,204
  • 10
  • 66
  • 103
1
vote
2 answers

I can not deal with non-standard resolution

I have design for my project. It for Nexus 6 with resolution 1440px x 2560px and 493 ppi. My design - 1440px x 2560px. I know that: ldpi 120 dpi mdpi 160 dpi tvdpi 213 dpi hdpi 240 dpi xhdpi 320 dpi xxhdpi 480 dpi xxxhdpi 640 dpi I…
Pavel Petrashov
  • 257
  • 1
  • 4
  • 13
1
vote
3 answers

Supporting Multiple Android Screens: Advantages vs. disadvantages of having drawer folders (images) for all densities?

I don't get why it's recommended to have a drawable (image) for all densities (ldpi, ..., xxhdpi). Would it not be better to add one file with the highest needed density (xxxhdpi) and than programmatically scale that image down (e.g. for tab icons I…
1
vote
1 answer

Is there a 720dp device with xxhdpi pixel density?

I am trying to design an android application that takes layout xmls from layout-sw720dp-port and has xxhdpi pixel density and I am using genymotion to create custom device emulators. But however I try, I cannot get a device resolution for the same.…
sharath
  • 521
  • 1
  • 4
  • 18
1
vote
5 answers

how to use drawable to compatible with all screen sizes (idpi, mdpi, hdpi, xhdpi, xxhdpi)

Hello I am new in android programing so I want to know: How to use drawable to compatible with all screen sizes (idpi, mdpi, hdpi, xhdpi, xxhdpi) Actually I am confused about drawable screen sizes compatibility with all screen sizes so I want to…
1
vote
0 answers

7 and 4.7 inch tab/phone come under normal screen

i have bsnl penta 7" tab. It comes under normal, mdpi, 455x800, screen size is ~5.4"(but tab is 7") when checked via code. The real problem is, when running my application it loads images, size etc from \res\drawable folder (not a problem with mdpi…
1
vote
1 answer

Colors Rendering Differently on Different Devices

Im setting the button state like
John x
  • 4,031
  • 8
  • 42
  • 67