4K显示器Android模拟器:失败 [英] 4k display & Android emulator: fail

查看:321
本文介绍了4K显示器Android模拟器:失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要搬到具有4k屏幕(准确地说是3840x2160)的新笔记本电脑上.作为我选择的操作系统,我有Linux,并且为此设置的所有扩展都是通过Gnome完成的(gnome tweaks中的缩放因子设置为2).总体而言,安装程序看起来很完美,除了在IntelliJ IDEA中运行的Android AVD之外.

I'm moving to my new laptop which has 4k screen (3840x2160, to be exact). As my OS of choice I have Linux, and all scaling I have set up for this is done via Gnome (scaling-factor in gnome tweaks is set to 2). Overall, setup looks perfect, except for Android AVD run in IntelliJ IDEA.

AVD配置为使用1920x1080尺寸的皮肤,我期望它的大小大约是屏幕的高度,但是由于某种原因,AVD会放大,这显然看起来很奇怪和不可使用.

AVD is configured to use skin with 1920x1080 dimensions, and I've expected that it would be roughly the height of the screen, however for some reason AVD is scaled up, which obviously looks.. weird and unusable.

我在这里查看了有关缩放仿真器的相关问题,但似乎IntelliJ界面已更改,因为Edit Configurations菜单中没有Emulator选项卡(以及我所见问题的解答)使用该选项来缩小仿真器的尺寸).因此,问题是:如何缩小比例(或者,更正确地说,如何禁用模拟器的缩放比例)?

I've took a look at relevant questions here about scaling the emulator, but it seems that IntelliJ interface has changed, as there is no Emulator tab in Edit Configurations menu (and answers to questions I've seen said to use that option to downscale the emulator). So, question is: how do I scale it down (or, to put more correctly, how do I disable the scaling for emulator)?

推荐答案

好的,我发现了问题所在.在Android模拟器的情况下,UI缩放由Qt处理.它设置为:QT_DEVICE_PIXEL_RATIO=2在我的配置中的某个位置.这使仿真器行为异常.干杯!

Ok, I've found out what the issue was. UI scaling is handled by Qt in case of android emulator. It was set to: QT_DEVICE_PIXEL_RATIO=2 somewhere in my configs. This made emulator act weird. Cheers!

这篇关于4K显示器Android模拟器:失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆