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
5
votes
1 answer

HOWTO get normal size cursor on high DPI monitor?

On a machine with a high DPI monitor connected when I try to get the cursor (though GetIconInfo or GetIconInfoEx) I get an HBITMAP which is 3 times the normal size. Is there a way to get a cursor normal size so that I don't have to resize it…
hamlatzis
  • 81
  • 10
5
votes
3 answers

Android xxxhdpi drawable resolution auto resize

If I add a large image to xxxhdpi folder does it gets resized automatically by Android to smaller images for other screen resolutions? And if yes from which version of Android is this supported?
Mario
  • 13,941
  • 20
  • 54
  • 110
4
votes
0 answers

How to create a High-DPI aware custom widget in QT?

There are many situations while creating a custom widget in QT where it's not possible to use relative sizes: Height of a button Default width of a vertical scroll-bar etc.. Several approach could be used for this: Using the screen DPI value:…
Adrian Maire
  • 14,354
  • 9
  • 45
  • 85
4
votes
3 answers

What's differences between 'drawable' folder and 'drawable-hdpi-ldpi-mdpi-xhdpi' folders?

To have just 'drawable' folder(if doesn't exist, I create) is enough to create suitable image size rate for all devices? or Should I create image size rate for each folder(hdpi, mdpi, ldpi, xhdpi) ?
Utku Soytaş
  • 1,475
  • 2
  • 19
  • 30
4
votes
3 answers

Making text same size on different devices

I wonder how to make application look the same on different devices. I have read Supporting Multiple Screens many times but I still can't understand how to live. Here is a sample layout:
darja
  • 4,985
  • 9
  • 33
  • 47
4
votes
3 answers

Android drawables DPI

I have an Android app with 4 versions of the same image, in each of these folders: drawable-ldpi/ drawable-mdpi/ drawable-hdpi/ drawable-xhdpi/ The only difference between the images is the size, I simply took the original large image and scaled it…
Rick
  • 91
  • 7
3
votes
1 answer

Running JProfiler on Java 10 (to work with 4K screens)

My new workstation has a 4K screen. Although the OS scales nicely, Java applications that do not run under Java 9 or higher do not. This leaves me with a very tiny JProfiler UI. As Java 9 is EOL'd by Oracle, it is hard and undesirable to install…
Guus
  • 2,986
  • 2
  • 21
  • 32
3
votes
1 answer

secondary monitor's coordinates are weird when using dpiawareness=1

I have two monitors: DISPLAY2: 3840x2160 (primary (no idea why it's called DISPLAY2 though) DISPLAY1: 1920x1080 (located right of primary) I wrote a small program to print their geometry, and it outputs: \\.\DISPLAY2; x=0, y=0;…
Sergio Martins
  • 897
  • 2
  • 8
  • 18
3
votes
2 answers

How to set dpiaware in javaws jnlp file

I have a java swing application that is deployed using Java web start. Everything appears very small on high dpi displays. I've determined this is because while java reports that it is dpi aware to windows in fact java swing applications are not…
Richard Good
  • 71
  • 1
  • 4
3
votes
1 answer

How to target xxxhdpi devices in Android manifest file?

According to Google documentation (http://developer.android.com/guide/topics/manifest/compatible-screens-element.html#compatible-screens) I am using the tag to target specific screens for my app (I'm trying to target phones…
jiraya85
  • 428
  • 1
  • 5
  • 26
3
votes
2 answers

Java swing application too small in ~HiDpi~ computers

I have a java desktop application which uses java swing and it works fine with normal displays. But when come to ~hiDpi~ displays( 3200*1800) whole application is too small. As application code is very large and complex, it is difficult to…
Channa
  • 3,267
  • 7
  • 41
  • 67
3
votes
1 answer

How to force android choose the right layout for the screen sizes supported?

I'm trying to support all kind of screens on my project. I added the the respective graphics in the folders-drawables(ldpi,mdpi,Hdpi,xhdpi,xxhdpi),, And also the layouts folders(layout-small,layout,layout-large,layout-xlarge,layout-xxlarge). Here is…
Chapo
  • 31
  • 1
  • 7
3
votes
3 answers

Does Paper.js work with Retina or other high definition displays?

I'm trying to decide between Raphaël and Paper.js. I've chosen Paper.js, however, now I'm reading in several places it doesn't work well with Retina or high definition displays. At least it used to not. Raphaël seems to naturally work perfect as…
at.
  • 50,922
  • 104
  • 292
  • 461
3
votes
1 answer

Wrap content vs setting dp

This DP measure is pretty confusing, I'm trying to learn when should I use wrap_content and when should I set the height, when using ImageView. My current issue is that I'm using wrap content on 3 images (and yes I have different resources for each…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
3
votes
1 answer

PSD file dimensions and resolution for Android app design

I heard and read different things regarding what should be the PSD file's dimensions and resolution for designing Android apps. Unfortunately, I came across different approaches for configuring PSD files, which I found confusing. This page in…
dors
  • 5,802
  • 8
  • 45
  • 71
1
2
3
9 10