Hi,
About support for multiple screens , I have understood to be based on the dpi , screen density .
As I read there are 4 types of density in android devices, approximately:
low - 120 dpi
medium - 160 dpi
high - 240 dpi
xhigh - 320 dpi
Also, I would have to define everything that uses , in my application, ' dp ' rather than pixels , okey .
Now what?
Different screen sizes , with different densities .
Put yourself in the situation that I want to make a game and I want to start by making a background and sprite.
It would have to do 4 sprites and 4 different funds for different types of densities, ok ? But, who would actually scale ? I mean, to work in any image editor like photoshop.
That dimension should have , for example , the background ?
I'll start with the high density ( 240dpi ) .
I have three devices with different sizes but same density.
The first is of 480x800 , 320x480 second and third 768x1280 .
Well, for example , to make the background of the game , that dimension would have to have ? A be the average of the three ? 784x1280 ?
If this is true, now would have to convert the pixels in pd to have an intermediate dimension depending on the dpi and I can work with , using the formula p = dp * ( dpi/160 ), where 'p' are pixels, 'dp' density-independent pixels, and dpi are dpi
And I would have , rounding , 523dp x 854dp .
This would be my size in pixels with which would make my background in photoshop.
All this is correct ? If I make a real background with dimensions 523x854 pixels , which conventiran in ' dp ' in the android devices, will look good on all those screens whose density is high ?
Please, correct me and help me
Thanks
PD: Sorry for my english, I used translate google
Pryato said:
Hi,
About support for multiple screens , I have understood to be based on the dpi , screen density .
As I read there are 4 types of density in android devices, approximately:
low - 120 dpi
medium - 160 dpi
high - 240 dpi
xhigh - 320 dpi
Also, I would have to define everything that uses , in my application, ' dp ' rather than pixels , okey .
Now what?
Different screen sizes , with different densities .
Put yourself in the situation that I want to make a game and I want to start by making a background and sprite.
It would have to do 4 sprites and 4 different funds for different types of densities, ok ? But, who would actually scale ? I mean, to work in any image editor like photoshop.
That dimension should have , for example , the background ?
I'll start with the high density ( 240dpi ) .
I have three devices with different sizes but same density.
The first is of 480x800 , 320x480 second and third 768x1280 .
Well, for example , to make the background of the game , that dimension would have to have ? A be the average of the three ? 784x1280 ?
If this is true, now would have to convert the pixels in pd to have an intermediate dimension depending on the dpi and I can work with , using the formula p = dp * ( dpi/160 ), where 'p' are pixels, 'dp' density-independent pixels, and dpi are dpi
And I would have , rounding , 523dp x 854dp .
This would be my size in pixels with which would make my background in photoshop.
All this is correct ? If I make a real background with dimensions 523x854 pixels , which conventiran in ' dp ' in the android devices, will look good on all those screens whose density is high ?
Please, correct me and help me
Thanks
PD: Sorry for my english, I used translate google
Click to expand...
Click to collapse
Make 5 folders in res folder
drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi
and put every thing on them and andrioid resize them automatically.
also...for best results use "wrap_content"
in layout_width and layout_height
Pryato said:
Hi,
About support for multiple screens , I have understood to be based on the dpi , screen density .
As I read there are 4 types of density in android devices, approximately:
low - 120 dpi
medium - 160 dpi
high - 240 dpi
xhigh - 320 dpi
Also, I would have to define everything that uses , in my application, ' dp ' rather than pixels , okey .
Now what?
Different screen sizes , with different densities .
Put yourself in the situation that I want to make a game and I want to start by making a background and sprite.
It would have to do 4 sprites and 4 different funds for different types of densities, ok ? But, who would actually scale ? I mean, to work in any image editor like photoshop.
That dimension should have , for example , the background ?
I'll start with the high density ( 240dpi ) .
I have three devices with different sizes but same density.
The first is of 480x800 , 320x480 second and third 768x1280 .
Well, for example , to make the background of the game , that dimension would have to have ? A be the average of the three ? 784x1280 ?
If this is true, now would have to convert the pixels in pd to have an intermediate dimension depending on the dpi and I can work with , using the formula p = dp * ( dpi/160 ), where 'p' are pixels, 'dp' density-independent pixels, and dpi are dpi
And I would have , rounding , 523dp x 854dp .
This would be my size in pixels with which would make my background in photoshop.
All this is correct ? If I make a real background with dimensions 523x854 pixels , which conventiran in ' dp ' in the android devices, will look good on all those screens whose density is high ?
Please, correct me and help me
Thanks
PD: Sorry for my english, I used translate google
Click to expand...
Click to collapse
Just make one image of xxhdpi dimensions and resize it using Google android asset studio
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Just make one image of xxhdpi dimensions and resize it using Google android asset studio
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No need to resize manually. Android itself resize them
Sent from my GT-S5360 using Tapatalk 2
mohamedrashad said:
No need to resize manually. Android itself resize them
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Yeah but it would cause more resource consumption
Sent from my GT-S5570 using XDA Premium 4 mobile app
Thanks to all
Bitmap decodeStream by multiple screen. Only need one picture
You should also include a drawable-xxxhdpi folder. This is only required for 1080p devices with the KitKat launcher, and only the app icon is needed here, it should have a resolution of 192 x 192 pixels.
andras_k said:
You should also include a drawable-xxxhdpi folder. This is only required for 1080p devices with the KitKat launcher, and only the app icon is needed here, it should have a resolution of 192 x 192 pixels.
Click to expand...
Click to collapse
Thanks, I will do it
Related
apparently, after changing my screen density to 182, these are the problems i found:
camera app - preview at bottom right hand corner does not scale according to the square.
phone - dialer does not scale.
calculator - does not scale.
apparently i think these problems can be rectified after i came across this thread
http://forum.xda-developers.com/showthread.php?p=9631967#post9631967
i tried the apks at the thread but it's only suitable for galaxy s and not galaxy tab.
i do not have the knowledge to do edit .xml files. anyone knows how to???
I've been thinking about this recently and wondering if there was a way to band-aid this problem. I'm running a 220 lcd density and would like to go higher res (lower lcd density) but apps that I use and like start breaking.
Ie :
- the email program in landscape
- words with friends
- native web browser address bar
Anyone know of an easier way than hacking the apk xml files?
Sent from my GT-P1000 using Tapatalk
My Xperia Arc screen resolution had changed and both screen and icons are smaller in size. Does anybody know how to restore the original size of the icons and the full screen size
chankkar73 said:
My Xperia Arc screen resolution had changed and both screen and icons are smaller in size. Does anybody know how to restore the original size of the icons and the full screen size
Click to expand...
Click to collapse
How did it change in the first place? Sounds like you have changed your density? Stock density is 240...
/CK
I think as a result of a certain application download. Could you please elaborate more how i can adjust the density that u refered to.
Search market for "LCD Density" - I use one of the paid versions... Open it and inside you can change the value... As said before, stock value is 240...
/CK
Or you can just change it right in the build.prop why would you pay an app to do that?
Sent from my X10a using XDA Premium App
How are these different
If we change dencity of android phone so is resolution will be the same?
Resolution of a display is the total number of pixels that the display contains.
The actual hardware density is constant, but the density that is presented to the software can be changed.
If a program needs to display something that needs to look a certain height, and the reported display density is 160 ppi, the program will use 16 pixels, but if the reported density is 200, that tells the program that the pixels are smaller, and it will use 20 pixels to present the same object. However, since the resolution is unchanged, the object will actually look bigger.
I hope that clears it up for you.
Thnkss a lot
And changing Density is certainly usefull for new High Resolution Devices that Cant Operate old apps fullscreen...
Changing means it should be kept to high,so that every object looks smaller and really becomes to look like high quality.:thumbup:
I change my resolution to 1920 x 1080 and all it does is change the size of the fonts, it becomes unreadable the tiles and basicaally the whole metroui remains the SAME size , its like windows its not adjusting the resolution properly, anyone else with this problem_ i have to use lousy 1360x768
Sounds like a DPI issue...
fed44 said:
Sounds like a DPI issue...
Click to expand...
Click to collapse
your on the ball today!
I know the nexus10 has a 2560x1600 Resolution but that includes the Softkeybar (Home, Back, Options) which we cant hide. We need the "real" usabable resolution so we dont get on trouble with image cropping etc.
Does anybody know exactly how high the Softkeybar on the Nexus10 is or what the "real" usable Resolution for the Nexus10 is? I googled already but cant find any usefull information.
Would be great to hear something from you guys.
Best regards
Philipp
Just a thought... take a screenshot. If it's less than 1600px high... minus the amount from 1600.
all screenshots i can find are 2560x1600. So that doesnt really help
I think it's 42dip.
for xxhdpi the ratio is about 1:3... So that would be about 126px (42px x 3).
EDIT:
Yep, this should help:
http://stackoverflow.com/questions/8168329/android-screen-sizes-in-pixels-for-ldpi-mdpi-hpdi
Kryten2k35 said:
I think it's 42dip.
for xxhdpi the ratio is about 1:3... So that would be about 126px (42px x 3).
EDIT:
Yep, this should help:
hm that confuses me. I measured it in photoshop on a 2560x1600 Screen shot and it was 96px. But i wanted to make sure so i hoped for some official info about that.
The DP stuff will be important when choosing sizes for UI Elementes but isnt relevant for the whole "whats resolution to work for" problem.
Isnt there any official Info about how many pixel of the screen height (in landscape mode) i loose to the Softkeybar?
Click to expand...
Click to collapse
mitsubstanz said:
Kryten2k35 said:
I think it's 42dip.
for xxhdpi the ratio is about 1:3... So that would be about 126px (42px x 3).
EDIT:
Yep, this should help:
hm that confuses me. I measured it in photoshop on a 2560x1600 Screen shot and it was 96px. But i wanted to make sure so i hoped for some official info about that.
The DP stuff will be important when choosing sizes for UI Elementes but isnt relevant for the whole "whats resolution to work for" problem.
Isnt there any official Info about how many pixel of the screen height (in landscape mode) i loose to the Softkeybar?
Click to expand...
Click to collapse
This guide has some of the basic info for density calculations.
http://developer.android.com/guide/practices/screens_support.html
The value will be different depending on the device's current screen density, but below are the default calculations for the Nexus 10:
The navigation bar height is defined in framework-res as 48dp.
The device's screen density is defined in build.prop as 320.
The density ratio (screen density / android default density of 160) is 2.
48 * 2 = 96px so your measurement in photoshop is right.
You can also visually check using Settings > Developer options > Input subsection > Pointer location
Click to expand...
Click to collapse
I just come back to say yeah it was 48dp. I had changed mine using AOKP to 42dp.
The above post is good info.
I don`t use navigation bar or the notififcation bar.
On aokp roms i hide them with gmd gesture control. Very easy to navigate with gestures and have the whole screen real-estate to apps.