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
2 answers

Is samsung galaxy nexus hdpi or xhdpi

I am placing images in drawable-xhdpi folder and galaxy nexus doesn't pick it up. Is galaxy nexus HDPI or XHDPI?
dcanh121
  • 4,665
  • 11
  • 37
  • 84
1
vote
2 answers

Canvas Bitmap drawing and Screen-Density

i'm developing a game for android based on the SurfaceView class. Currently i'm stuck trying to optimize the view for different screen-sizes. Problem 1: i have PNG-Files in my res folder and i draw them using Canvas.drawBitmap. After reading this…
Effdee
  • 53
  • 1
  • 6
1
vote
0 answers

Images (other applications icons) on Android app rendering smaller on hdpi device if android:minSdkVersion="7" is specified

One of the activity in my apps, displays all the installed apps on the phone in a Grid View. The icons are displayed in the activity as shown in default launcher if the android manifest does not contains uses-sdk tag. But if I add (uses-sdk…
user899849
  • 311
  • 4
  • 15
1
vote
1 answer

Graphics.DrawImage on High DPI 150%+ Only Draws Portion of the Image

This issue happens on Windows 10 Creators Update or later using 175% zoom or higher targeted .Net 4.7.2. Further, we are calling SetProcessDPIAware in the Program.cs file. If we do not call this then fonts look horrible on High DPI, especially at…
1
vote
1 answer

Why is GetSystemMetrics (SM_CXVIRTUALSCREEN) returning 'bad' values?

The problem I'm having is I'm losing toolbars when they're dragged from 4k to a standard def. monitor on a 200% scaled desktop (they JUST VANISH) (Derived from CMFCToolbar). This looks a bit like a MFC bug as I'm not handling the dragging process,…
craker
  • 67
  • 9
1
vote
1 answer

How does pixel density correspond to screen size?

Sorry for creating a potential duplicate but I haven't found anything that answers my question. It essentially boils down to: What image sizes should I include in which folders for full screen images to support all Android devices? Answers usually…
James Abuser
  • 48
  • 1
  • 1
  • 5
1
vote
2 answers

Galaxy S screen DPI

I am developing and testing an android application on my Galaxy S device, which should be (according to the android dev site) a normal size screen (4 inch) with HDPI (233dpi). For some reason, drawables that I put in drawable-mdpi are shown instead…
Ran
  • 1,089
  • 1
  • 12
  • 30
1
vote
1 answer

how to render smothly P5.js in hdpi screen?

Computer with hdpi screen are more and more common and I own one. I'm building a webpage with a P5.js canvas inside it filling a div. I have absolutely no problem till this point, but as I have an hdpi screen the number of pixels to render is…
1
vote
0 answers

HTML5: Device Pixel Ratio VS Software Zoom

How can I reliably distinguish between the device's pixel ratio and the browser's zoom setting? My website needs to adapt to each of these in a different manner, so the product of these two data points is inadequate: window.devicePixelRatio.
1
vote
0 answers

Icons disappearing in vcl popupmenu on high dpi. What's happening?

I have a vcl application with Delphi 10 Seattle with the high dpi awareness checked (which seems to be the default setting if you create a new application). In my application I have a popupmenu with icon images at the items. When the menu popups,…
Andre Ruebel
  • 518
  • 3
  • 12
1
vote
1 answer

HDFS Encryption Error | root not allowed to do 'CREATE_KEY'

I am using HDP sandbox with Ranger KMS installed as KMS Server. I fired below command on sandbox. hadoop key create testKey I got below exception as a result. testKey has not been created.…
Shashi
  • 2,686
  • 7
  • 35
  • 67
1
vote
1 answer

How to design for devices between hdpi and xhdpi

I'm using these res drawable folders in my application every thing is fine, until recently I installed my app in Sony C3 device its dpi is ~267 but screen size is 5.5" which makes it hdpi device with large screen. It is taking the dimensions from…
Praneeth
  • 1,260
  • 18
  • 37
1
vote
0 answers

Run java application for HDPI screen?

Is there a way to run a java application for HDPI screen? ( like any console option ) Or HDPI is required to be addressed by code? Context: We have an application which is unusable in HDPI screens due to the size of text and icons. If not possible…
Adrian Maire
  • 14,354
  • 9
  • 45
  • 85
1
vote
2 answers

Android: Optimize for high-dpi devices only but still support (small- and) medium-dpi screens

I'm building a game with graphic assets in hdpi resolutions (hence I put the files in drawable-hdpi directory). I don't want to have a corresponding mdpi resolution of the images, and I will code everything in 240-dpi based pixel coordinates. Is it…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
1
vote
3 answers

How to get device pixel ratio in Qt 4.8 for Windows?

We have desktop app which uses Qt 4.8. We are trying to support different DPI screens like Mac retina, Surface Pro 4 devices. For Mac we can get the device pixel ratio by just single function call: CGFloat devicePixelRatio = [[NSScreen mainScreen]…
mahesh
  • 135
  • 1
  • 2
  • 8