hdpi

Android drawables - use xhdpi for hdpi

懵懂的女人 提交于 2019-12-06 11:29:38
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 possible? Yes, Android scales drawables, selecting the drawable that will produce the best result. But not all scaling combinations work that well. Downscaling to MDPI can produce noticeably poor results. XHDPI to HDPI generally produces pretty good results. But given that the overwhelming majority of devices these days are HDPI, it's probably

Where to store images in Android drawables folder?

时光毁灭记忆、已成空白 提交于 2019-12-05 06:42:25
问题 I am working on Android application that should support 2.1 till latest Android OS (4.2) version. Currently I have few images to display in my image-gallery module. I need to support my app on all devices (smartphone and tablet) which support OS ranging from 2.1 to 4.2 (latest). Each image is roughly of size 368X387, 50 KB each, PNG type My workspace res contains following drawable folders: drawable-hdpi drawable-ldpi drawable-mdpi drawable-xdpi I have some confusion around In which folder

Netbeans 8.2 with jdk 9

廉价感情. 提交于 2019-12-03 23:08:28
I have an issue on hdpi with netbeans, the icon become too small when I open it. Then I found the issue below. And someone says that jdk9 fix the resolution problem. https://netbeans.org/bugzilla/show_bug.cgi?id=252452 Here is my environment: OS: windows 10 (64bit) JDK: JDK9 BUILD149 netbeans 8.2 I downloaded jdk9 & netbeans8.2 on windows10, hoping that JDK9 might fix the annoying resoution issue. Unfortunately, I can't open the netbeans. After I type this in cmd. netbeans.exe --jdkhome "C:\Program Files\Java\jdk-9" console show the error. No way to find original stream handler for jar

Delphi High DPI switch between own scaling and Windows scaling

淺唱寂寞╮ 提交于 2019-12-03 13:54:46
问题 Some of my customers want to be able to scale my application manually (when Windows dpi is set to 96), so I had to implement scaling. Unfortunately these customers cannot go with setting Windows DPI to an other value and let WIndows scale my app because some very important applications they use do not behave well at all on resolutions <> 96 DPI. I managed to make my Delphi 10.1 application scale quite well even on 200% but the higher the factor becomes the more some proportions become "not so

spark-shell error : No FileSystem for scheme: wasb

怎甘沉沦 提交于 2019-11-30 15:57:07
We have HDInsight cluster in Azure running, but it doesn't allow to spin up edge/gateway node at the time of cluster creation. So I was creating this edge/gateway node by installing echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' >> /etc/apt/sources.list.d/HDP.list echo 'deb http://private-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/ubuntu14 HDP-UTILS main' >> /etc/apt/sources.list.d/HDP.list echo 'deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/azurecore/ trusty main' >> /etc/apt/sources.list.d/azure-public-trusty.list gpg --keyserver

Nexus 7 and Kindle Fire HD, think different

穿精又带淫゛_ 提交于 2019-11-30 04:56:18
I'm developing an application for tablet 7 inch Kindle Fire HD and Nexus 7 . These two applications are the same size and the same screen resolution. However, I run my application, it is very different. Why? it seems this is because the nexus 7 is detected as TVDPI, and the Kindle Fire HD is HDPI. How to have a same rendering based on a model 1280 * 800? Thank you Well, it seems you've already discovered why the two have differences, it's because they report different density scale factors: Nexus 7: TVDPI: Scale Factor = 1.333 Kindle Fire HD: HDPI: Scale Factor = 1.5 So why do they report

Java 9 hdpi display support - multi-resolution images - name convention and loading in Windows

戏子无情 提交于 2019-11-29 01:00:29
According to these articles: http://news.kynosarges.org/2015/06/29/javafx-dpi-scaling-fixed https://twitter.com/michaelsamarin/status/729234779292483584 Java 9 should support high DPI displays (automatic DPI scaling) in Swing. I have tested it on the last version of Java 9 Early Access + on Zulu 9 and it works and looks really great. I was unable to solve only one thing - high resolution/retina image loading. According to articles (links) above and below it should use an Apple name convention ( @2x ): image.png , image@2x.png , image@3x.png , etc. I tested these loading methods: Toolkit

JavaFX 8 HiDPI Support

让人想犯罪 __ 提交于 2019-11-27 19:24:04
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? jewelsea 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-retina display mac it will take up 8 pixels, on a retina display which has double the resolution, the

Java 9 hdpi display support - multi-resolution images - name convention and loading in Windows

。_饼干妹妹 提交于 2019-11-27 15:31:49
问题 According to these articles: http://news.kynosarges.org/2015/06/29/javafx-dpi-scaling-fixed https://twitter.com/michaelsamarin/status/729234779292483584 Java 9 should support high DPI displays (automatic DPI scaling) in Swing. I have tested it on the last version of Java 9 Early Access + on Zulu 9 and it works and looks really great. I was unable to solve only one thing - high resolution/retina image loading. According to articles (links) above and below it should use an Apple name convention

Java swing application too small in ~HiDpi~ computers

柔情痞子 提交于 2019-11-27 09:10:48
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 rearrange code to match with hi dpi. Is there a solution to this problem? I have seen application like IntelliJ idea and eclipse works fine with this kind of displays without a problem. Appreciate any help. MadProgrammer Some time ago, I was tasked with developing a solution which would allow a user to increase or decrease the font size of the application