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

Ensuring sprites are visible on Android

I am new to Android development and am currently creating a Space Invaders game to help me familiarise myself with surfaceview's, bitmaps, canvases, threads etc etc. So far so good. What I currently have runs in a real tablet quite nicely. However,…
0
votes
3 answers

Font size for different density devices

When I tested the font size with different density settings using the Eclipse Emulator, I get different size fonts even though I am using "dp" to specific the size. I would have thought the size may decrease with higher density, but I found the…
0
votes
2 answers

layout not scaling in hdpi devices

I have created a tablet specific app that looks good in the mdpi devices. However, when the app is displayed in hdpi devices, the layouts and images look too big. Here is the first screenshot that looks good in a 7" tablet with 170…
0
votes
1 answer

should i make different images for each folder in an android application?(hdpi,mdpi,ldpi)

I want to develop a game but I'm not sure about the sizes of the pics. I checked the app after I finished one animation on my phone and on my emulator; the pics changed their size by themselves. Then should i make the same pic with different size…
Baruch
  • 1,618
  • 5
  • 23
  • 42
0
votes
1 answer

Is it possible to include other backends in a Tkinter window than the Tk backends?

I recently had many issues with Tkinter backends on my MacBook Pro high DPI display. The plots look blurry. It is a known issue, which unfortunately cannot be resolved unless using a different backend as far as I am concerned. Are there any other…
0
votes
1 answer

Python: AA_EnableHighDpiScaling on Qt v5.15.2

On this page I read that high DPI scaling is available since qt v5.6. But it doesn't seem to work for me: Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32 >>> from PyQt5 import Qt, QtCore >>>…
0
votes
2 answers

Why is a slight gap added between rows on HDPI screens, causing this striped effect?

I have a perplexing CSS issue, where multiple rows with background colour that should meet have a very slight gap in high DPI screens. @font-face { font-family: 'Iosevka'; font-style: normal; font-weight: 400; src:…
curiousdannii
  • 1,658
  • 1
  • 25
  • 40
0
votes
0 answers

C++: Missing methode GetSystemMetricsForDpi() for High resolution screen

I use Visual Studio 2015 and information from https://learn.microsoft.com/nl-nl/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows The compiler don't recognize GetSystemMetricsForDpi() #include "winuser.h" [...] void…
0
votes
0 answers

Dimen value for hdpi density not working as intended Android

I'm trying to give layout_constraintDimensionRatio attribute in constraint layout different value for hdpi screens and have a default for all others. I made a dimens resource with density hdpi in values-hdpi folder. I want it to be 2:1 value for…
Saul
  • 91
  • 2
  • 14
0
votes
0 answers

How to ensure the QFrame title is scaled automatically with the Window 10's "Make text bigger" scaling?

I have a custom panel implementation that is inherited from QFrame. I can set the title by using the setWindowTitle() function. I noticed that I can not set the font size of this title, but I was expecting that this title will be scaled based on…
John Yang
  • 547
  • 1
  • 8
  • 21
0
votes
1 answer

Can we able to change MDPI device to HDPI device?

I am using different code for Mobile and Tablets. Using the following code to check for mobile or tablet: final float scale = context.getResources().getDisplayMetrics().density; final float deviceWidth; if…
0
votes
0 answers

Inconsistent count results from Apache HIVE

We have the latest Hortonworks's HDP, with Hive version (3.1.0) I have a problem when trying to count the number of rows, on a given condition. The count (*) returns false value when executed side by side with a simple select on the same…
0
votes
1 answer

Restrict installation of app on devices with screen density hdpi or lower

I am developing an android app which is only for devices with high screen densities. i want to restrict my app on devices having 1.5 screen density or lower than that. I searched a lot about this problem and found out that we can handle this by…
0
votes
0 answers

How to create a specific dimes.xml for a small mobile device?

I have a mobile device Samsung xCover 3 with 4.5", 480x800 pixels and ~207 ppi. What is the corect values folder to create? I know it's something like "values-sw??dp" but i don't know how to get the ?? number.
Miki
  • 27
  • 10
0
votes
1 answer

There's no zeppelin.livy.principal in Ambari Zeppelin Service configuration with HDP 3 stack installed

According to this doc, i should find zeppelin.livy.principal in config of zeppelin or spark2, but there's no such option there.