设置安卓屏幕分辨率

发布于 2024-08-17 16:44:50 字数 373 浏览 3 评论 0原文

我正在尝试将 Android 模拟器(以及 Android 设备)的默认屏幕分辨率更改为 1700x1200。换句话说,我需要屏幕能够显示该范围内的独特点。

我已在布局文件中设置尺寸,但设备仍默认为 320x480。我设置了不同的 dpi 密度,但没有效果。

任何帮助都会很棒,即使只是一个探索的方向。

编辑:感谢您的两个回复。我想我的问题不清楚 - 我知道设备的最高分辨率是固定的,但我需要缩放屏幕以显示比 640X850(我认为这是最高分辨率)更精细的粒度。我知道您可以将 dpi 密度设置为 120-240,但我需要知道如何设置缩放功能来模拟 1700x1200 的屏幕。我的猜测是,这必须由我的代码来完成,但我更希望平台为我自动缩小规模。这可能是不可能的,但我只是想检查一下。

I'm trying to alter the default screen resolution of the Android emulator (and by extension, the Android device) to work at 1700x1200. In other words, I need the screen to be able to display unique points over that range.

I have set the dimensions in my layout file, yet the device still defaults to 320x480. I've set different dpi densities, but to no avail.

Any help would be great, even just a direction to explore.

EDIT: Thanks for the two responses. I guess my question wasn't clear - I understand that the top resolution for the device is fixed, but I need to scale the screen to display with finer granularity than just 640X850 (which I believe is the highest resolution). I understand you can set dpi density from 120-240, but I need to know how to set the scaling functionality to simulate a screen of 1700x1200. My guess is that it will have to be done by my code, but I would prefer for the platform to auto-scale it down for me. This may not be possible, but I just wanted to check.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

悍妇囚夫 2024-08-24 16:44:50

使用 Android SDK 2.0 或 2.1,您可以创建具有自定义分辨率的 AVD。如果您愿意,您还可以使用 -skin 参数运行模拟器,例如 emulator -skin 1700x1200,您将得到您想要的。

Using Android SDK 2.0 or 2.1 you can create an AVD with a custom resolution. If you want you can also run the emulator with the -skin argument, for instance emulator -skin 1700x1200 and you'll get what you want.

自找没趣 2024-08-24 16:44:50

可能我并不完全理解这一点。您希望物理设备(例如 ADP1 电话)具有 1700x1200 的分辨率吗?如果您想要的话 - 我有一些坏消息 - 如果您查看任何设备规格,您会看到列出的分辨率。它之所以存在,是因为它具有物理屏幕的特性。它无法改变。

May be i'm not completely understand that. You want physical device such as ADP1 phone for example, to have 1700x1200 ? If it that you want - i have some bad news - if you look at any device spec you'll see resolution listed. It's there because it characteristic of physical screen. It can't be changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文