hdpi

Android screen size HDPI, LDPI, MDPI [duplicate]

点点圈 提交于 2019-11-26 23:30:01
This question already has an answer here: Android splash screen image sizes to fit all devices 9 answers I have a background that I need fit in all screen sizes. I have three folders, hdpi , ldpi and mdpi for drawables, but in the emulator there isn't any referense to what resolution hdpi is and what mdpi and ldpi are. evilone You should read Supporting multiple screens . You must define dpi on your emulator. 240 is hdpi, 160 is mdpi and below that are usually ldpi. Extract from Android Developer Guide link above: 320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).

JavaFX 8 HiDPI Support

我们两清 提交于 2019-11-26 22:48:00
问题 I just tried out the JavaFX Hello World Example on a 4k screen on Arch Linux, but unfortunately the GUI does not scale. The documentation says Hi-DPI support. JavaFX 8 now supports Hi-DPI displays. So how can I make my application dpi aware? 回答1: Hi-DPI support on various devices For OS X Macs with retina display it should "just work" - JavaFX is aware of Hi-DPI Macs and will scale the UI appropriately. If you set the spacing in a VBox to 8, then that is a device independent unit; on a non

Automatic rescaling of an application on high-dpi Windows platform?

房东的猫 提交于 2019-11-26 22:33:42
I'm writing a Qt application that needs to run on high-dpi Windows (192dpi instead of 96dpi). Unfortunately the Qt framework does not have support for high-dpi yet (at least on Windows), so my application and all its elements looks half the size it should. Is there any way to force/simulate automatic upscaling of such apps by Windows? Nejat Applications that use fixed coordinates and sizes will look small on high-DPI resolutions. Although even if using layouts there are some issues regarding element and font sizes and margins. Fortunately there is support for high-DPI displays since Qt 5.4 as