本文介绍了Android模拟器 - HTC感觉XL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,我的应用程序有其唯一的HTC感觉布局(不知道是否XL与否)的问题。现在,由于该设备具有800x480分辨率(以及支持的分辨率,显示在其他设备上精) - 我怎么能在模拟器上模拟HTC感觉(+ XL)

It seems that my app have problems with its layout only on HTC Sensation (not sure if XL or not). Now, since that device has resolution of 800x480 (and that is supported resolution, showing fine on other devices) - how can I emulate HTC Sensation (+XL) on the emulator?

或者说,我怎么能模拟4.3设备上的模拟器?

Or, how can I emulate 4.3" device on the emulator?

推荐答案

这个回答可以帮助你:
How打造7英寸;平板电脑(1280 * 800)在Android的屏幕分辨率模拟器?。

This answer might help you:How to create 7" Tablet (1280 * 800) Screen Resolution Emulator in Android?.

以下参数创建一个新的虚拟设备:

Create a new Virtual Device with the following parameters:

首先,在固定的480x800的分辨率

First, fix the resolution at 480x800

修改

Abstracted LCD Density

与密度播放,分辨率将定义屏幕

Playing with the Density and the resolution you will define the screen

的公式是:

DENSITY = sqrt (x^2+y^2)/d where d is the diagonal in inches.

所以,假如你希望一个D = 4'7,那么你需要的密度:

So, supposing you want a d=4'7", then you need a density of:

Density=sqrt(480x480+800*800)/4'7 = 198,499

所以,解决抽象液晶密度199和有你。

So, fix the ABSTRACTED LCD DENSITY to 199 and there you are.

这篇关于Android模拟器 - HTC感觉XL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 23:07