在模拟器VS设备的Andr​​oid布局 [英] Android layout on emulator vs device

查看:101
本文介绍了在模拟器VS设备的Andr​​oid布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用所有留点东西来支持不同的屏幕尺寸/密度在我的应用程序(相对布局,浸等。)

I've created my app using all the neccessary things to support different screen sizes/densities (relative layouts, dip etc.)

我已经创建了所有留点布局文件(LDPI,MDPI等)和图像此支持。

I've created all the neccessary layout files (ldpi,mdpi etc) and images for this support.

我测试过的所有使用Eclipse可用的仿真器样机的应用程序,他们都出现像的应该。然后,我测试了这个真实的设备(三星Galaxy SII)上,它看起来很棒。然后,我测试了一的Galaxy Tab(7)和布局是一个有点不对劲,和文字大小是错误的也使得它看起来非常糟糕的平板电脑。

I've tested the app on all the available emulator skins using Eclipse, and they all appear like the should. I then tested this on a real device (Samsung Galaxy SII) and it looked great. Then I tested it on a Galaxy Tab (7") and the layouts were a bit wrong, and the text sizes were wrong too, making it look really bad on the tablet.

我真的被这个迷惑,因为它是用所有的仿真器样机(包括一个7屏皮肤)的测试,然后我创建了一个自定义的AVD - (102​​4X600,240密度),以符合确切规格银河平板电脑。这又看了一遍,因为它应该在模拟器上,但真正的设备显示不同。

I'm really confused by this, because it was tested using all of the emulator skins (this includes a 7" screen skin). I then created a custom AVD - (1024X600, 240 density), to match the exact specs of the galaxy tablet. This again looked as it should on the emulator, but the real device shows differently.

任何思考这是为什么?如果不是一个真正的设备相同的规格仿真器看起来一样的设备?

Any thoughts why this is? Shouldn't an emulator with the same specs of a real device look the same as the device?

感谢

推荐答案

看看这篇文章:

<一个href="http://stackoverflow.com/questions/8988473/android-concerning-the-user-interface-design">Android,关于用户界面设计

您会注意到蒂姆评论,他提到,Galaxy Tab的7拥有超大的屏幕,并使用MDPI的资源。所以,你的模拟器设置为1024x600的有华电国际,这可以解释的差异。

You will note a comment from Tim where he mentions that the Galaxy Tab 7" has a large screen and uses the mdpi resources. So your emulator is setup for 1024x600 with hdpi, which would explain the difference.

或者刚刚从三星下载/安装模拟器。

Or just download/install the emulator from Samsung.

效仿三星Galaxy Tab

这篇关于在模拟器VS设备的Andr​​oid布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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