Questions tagged [hdpi]

HDPI refers to a high-density screen (about 240 dpi) used on an Android device.

Term or suffix used in Android that stands for high density displays. -hdpi can be added to layout, drawable, etc. folders in order to maintain artifacts that have especially been designed for this density.

Beside hdpi, one might use ldpi, mdpi or xhdpi, too. The Android system automatically chooses the appropriate resource files.

See official documentation for more.

141 questions
2
votes
3 answers

Use HDPI Resources on Kindle Fire

I'm currently looking into getting my android app to work on Kindle Fire. I've got artwork for both MDPI and HDPI screens, but I noticed that when I load the app up on the Kindle, it displays the MDPI artwork and stretches some of my artwork that…
user1174195
  • 121
  • 1
  • 9
2
votes
3 answers

Android HDPI devices with irregular layouts

I am encounter more and more android devices with irregular layouts, especially in the HDPI section. The problem is that my more complex layouts do not scale correctly even though I only use DIP values in my xml layouts. Animations are particularly…
CQM
  • 42,592
  • 75
  • 224
  • 366
2
votes
1 answer

Programmatically find best-matching resource at runtime

Is it possible to find the best-matching resource Programmatically at run-time ? For example I have some device that have screen properties that makes perfect match for layout-normal-mdpi. How can I, at run time, read that that specification ? For…
Lukap
  • 31,523
  • 64
  • 157
  • 244
2
votes
0 answers

Why is ion-button and ion-badge misaligned vertically

So this is weird. I have the following markup for an ion-button and ion-badge, with the corresponding css. You can see that on hdpi screen (2nd screenshot), the text labels are incorrectly vertically aligned - too high up. This is the same…
Dave
  • 5,283
  • 7
  • 44
  • 66
2
votes
0 answers

Qt DevicePixelRatio not set under macOS

I'm working on a cross platform application for Linux, Windows and macOS and there is part where I need to scale something based on the screen scaling. So far I have been using QApplication::desktop()->devicePixelRatioF() under Linux and Windows to…
Damir Porobic
  • 681
  • 1
  • 8
  • 21
2
votes
3 answers

How to manage drawables for phone and tablet, both hdpi?

I've tried to run my app on a Nexus-One-like emulator skin and a Galaxy-Tab-like. As far as I know, both devices are hdpi, but Nexus is considered large and Galaxy Tab is considered xlarge. I have two folders for my drawables: drawable-large-hdpi…
Egor
  • 39,695
  • 10
  • 113
  • 130
2
votes
0 answers

WM_DPICHANGED event suggesting bad new position for window

I have two monitors connected to my desktop. A 3840x2160 main monitor on the left set to 150% scaling (144 DPI) and a 1920x1080 monitor on the right set to 100% scaling (96 DPI). The are aligned on the bottom edge. This is on Windows 8.1, but the…
mb13
  • 139
  • 12
2
votes
2 answers

Phonegap android hdpi icon doesn't change from defualt

I know a lot of questions like this have been asked but nothing seems to fix this: the android hdpi icon won't change (but the rest do) its always the default cordova icon (yes the icons exsist). in config.xml
2
votes
1 answer

Will images look sharper on HiDPI devices if their native width is above their CSS width?

The iPhone 6 has a resolution of 1334x750px but has a CSS-width of 375px. What I want to know is if I make an image 750px wide, but set its width to 375px with CSS or HTML, will it look sharper than a native 375px image?
mpen
  • 272,448
  • 266
  • 850
  • 1,236
2
votes
0 answers

Retina (HDPI) KineticJS sprites

I am working with KineticJS sprites and can't work out a way to get them to appear as HDPI - I have tried using scale to half size (my images are 2x the size I want them to appear) - which makes the image smaller without making it 'denser'. I have…
FreddyBushBoy
  • 557
  • 4
  • 8
2
votes
2 answers

How To Properly Use Drawable Folder Eclipse?

I am a newbie programmer, but I am almost done with my android game project. However I still don't know how to use the drawable folders properly. For example, if I have a image that is 32 by 32 pixels, which folder does it go to? And how big do I…
Zunair Syed
  • 172
  • 4
  • 13
2
votes
1 answer

165 ppi resolution device comes under mdpi or hdpi

I have device Display Resolution of 320*480,3.5 inch. So its diagonal resolution is 165 ppi. So this device comes under mdpi or hdpi? In multiple support screen document a table shows the category but, ~160 means minimum 160 0r maximum 160. From…
Ramprasad
  • 7,981
  • 20
  • 74
  • 135
2
votes
4 answers

Android drawables - use xhdpi for hdpi

Last two questions stayed unanswered, I hope "third one's the charm" works :) I want application that is HDPI use those drawables in folder "drawable-xhdpi" and LDPI devices those in "drawable-mdpi". So I don't have to duplicate same images. Is this…
Trick
  • 3,779
  • 12
  • 49
  • 76
2
votes
2 answers

Which res folder will be used in 1920*1080 in Android?

FHD(Full HD) is 1920*1080. Which the res folder would be used in FHD and what's the dpi value should be set?
Jerikc XIONG
  • 3,517
  • 5
  • 42
  • 71
2
votes
1 answer

Bitmap Width and Height with Android 4

I have carema.png and carema_sel.png images in drawable-hdpi and a carema_btn.xml layout file. On Android 2.2 and 2.3 devices, things appear normal, but in android 4.0, the button is too big. Here is my layout:
1 2
3
9 10