Android模拟器屏幕尺寸与设备框架不同 [英] Android Emulator Screen Size not the same as device frame

查看:113
本文介绍了Android模拟器屏幕尺寸与设备框架不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行模拟器时,屏幕尺寸小于设备框架,如下图所示.它仅在屏幕分辨率为3840 x 2160的计算机中发生

When I run the emulator the screen size is smaller than the device frame as in the image below. It only happens in a computer with a screen resolution of 3840 x 2160

推荐答案

我有一个Dell XPS 13,其屏幕分辨率为3200 x 1800,并且我遇到了完全相同的问题.

I have a Dell XPS 13 with a screen resolution of 3200 x 1800 and I had exactly the same problem.

玩完这些设置后,我在Android Studio中找到了一个(临时)解决方案:

After playing with the settings I found a (temporary) solution in Android Studio:

导航到工具-> Android-> AVD管理器

Navigate to Tools -> Android -> AVD Manager

  1. 单击编辑此AVD"(带有铅笔图的那个)
  2. 在仿真性能"中,单击软件.."选项(下图)

通过这种方式,渲染是通过软件而不是图形卡进行的. 它肯定会影响性能,但也许可以测试.

This way the rendering is made from software and not from the graphics card. It definitely effects the performance but maybe for a test it's ok.

替代建议: 我从 Genymotion 测试了模拟器,它可以正常工作. 它对个人用户免费,如果您想更快地使用它,这也许是个不错的选择.

Alternative suggestion: I tested the emulator from Genymotion and it works. It is free for personal users and maybe a good option if you want something faster.

这篇关于Android模拟器屏幕尺寸与设备框架不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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