pixel-density

How should you (not) use density independent pixels on Android?

点点圈 提交于 2019-12-23 05:15:09
问题 One poster suggested using a project called SDP, as an answer to a question regarding the Android density independence mechanism. He justified it, saying: It can help Android developers with supporting multiple screens Why is that a bad answer or a bad idea in general? 回答1: Multiple reasons: Bad practice The approach taken by this project is arguably useless, even destructive. Destructive, because it breaks Android density independence. It takes images that need little scaling to match the

android splash screen sizes for ldpi,mdpi, hdpi, xhdpi displays ? - eg : 1024X768 pixels for ldpi

我与影子孤独终老i 提交于 2019-12-17 05:16:32
问题 I have to design splash screens(images that fit screen while loading) for android application using phonegap. I have to design 4 size images that fit for 4types of screens like ldpi, mdpi , hdpi, xhdpi . Can anyone tell me exact sizes in pixels for these screens so I can design in that size ? Example answer : ldpi - 1024X768 px mdpi - 111 X 156 px We support ldpi, mdpi, hdpi and xhdpi displays; the following will define splash screens for each specific screen type. <gap:splash src="splash

Responsive images - srcset and sizes attribute - how to use both correctly: device-pixel-ratio-based and viewport-based selection together?

放肆的年华 提交于 2019-12-08 17:36:11
问题 I have read about this problem quite often so far and it also occurs for my own projects. Here is an introduction of what I have found out so far about the srcset and the sizes attribte. There are two different possibilities on how to use the srcset -attribute (source w3c: http://w3c.github.io/html/semantics-embedded-content.html#device-pixel-ratio): Device-pixel-ratio-based selection when the rendered size of the image is fixed This is a simple and reliable way to use srcset . You simply say

Why 2 devices of same size, same resolution, claims different density? [closed]

旧城冷巷雨未停 提交于 2019-12-04 03:26:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Please take a look at Material IO's device metrics: Pay attention to Google Pixel and HTC One M9. These 2 devices have the same physical size, same number of pixels, but claimed to have different pixel densities. This contradicts with my understanding of pixel density. Which of the following is true? My

Not able to understand how to use different density images for 1.6+?

不打扰是莪最后的温柔 提交于 2019-11-30 07:55:33
I'm trying to understand how the res/drawables images should work with different screen densities. Right now I've got a 1.5 app, and for example, I have an image that is 100x100 pixels. When used on the Droid, it scales this image so it appears to be the same size relatively on that device (all other layout scaling is handled by me, using dip units). So now I need to update my project and add three folders, right?: drawable-ldpi drawable-mdpi drawable-hdpi so I'm going to put my 100x100 image in the -mdpi folder. If I want to make a version for the -hdpi folder - how do I know how much larger

Not able to understand how to use different density images for 1.6+?

雨燕双飞 提交于 2019-11-29 10:23:41
问题 I'm trying to understand how the res/drawables images should work with different screen densities. Right now I've got a 1.5 app, and for example, I have an image that is 100x100 pixels. When used on the Droid, it scales this image so it appears to be the same size relatively on that device (all other layout scaling is handled by me, using dip units). So now I need to update my project and add three folders, right?: drawable-ldpi drawable-mdpi drawable-hdpi so I'm going to put my 100x100 image

android splash screen sizes for ldpi,mdpi, hdpi, xhdpi displays ? - eg : 1024X768 pixels for ldpi

孤人 提交于 2019-11-26 21:09:59
I have to design splash screens(images that fit screen while loading) for android application using phonegap. I have to design 4 size images that fit for 4types of screens like ldpi, mdpi , hdpi, xhdpi . Can anyone tell me exact sizes in pixels for these screens so I can design in that size ? Example answer : ldpi - 1024X768 px mdpi - 111 X 156 px We support ldpi, mdpi, hdpi and xhdpi displays; the following will define splash screens for each specific screen type. <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" /> <gap:splash src="splash/android/mdpi.png"