索尼Xperia Z密度对我来说似乎很奇怪,我的应用程序可以正常工作吗? [英] Sony Xperia Z density seems odd to me, will my app work fine on it?

查看:229
本文介绍了索尼Xperia Z密度对我来说似乎很奇怪,我的应用程序可以正常工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个学校项目的应用程序。我的教授有索尼Xperia Z,并将测试我的应用程序,所以我试图确保我的应用程序将最完美的索尼Xperia Z.我已经在Eclipse中设置了一个索尼Xperia Z AVD,结果是真的很诚实。



这是应用程序布局在大多数设备上的显示方式:



这是我在Sony Xperia Z模拟器上运行时的样子:



我做了一些研究和索尼Xperia Z真的确实比其他手机的密度要小很多,但是一切真的会这么小吗?如果这真的是应用程序在Sony Xperia Z上的样子,那我该如何解决呢?它是通过创建不同的密度图标来修复吗?但是如何解决文本大小?索尼Xperia Z的文本将几乎不可读,如果它保持不变。

解决方案

索尼Xperia Z使用xhpdi所以把你的资源在xhpdi,你可以把你的布局在屏幕尺寸X大。如果你想在模拟器中测试你的应用程序,你可以使用这个 http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/


I'm developing an app for school project. My professor has Sony Xperia Z and will be testing my app on it, so I'm trying to make sure that my app will work most perfectly on Sony Xperia Z. I have set up a Sony Xperia Z AVD in Eclipse and the results are really odd to be honest.

This is how the app layout looks on most devices:

And this is how it looks like when I run it on Sony Xperia Z emulator:

I did some research and Sony Xperia Z really does have a lot smaller density than the other phones, but should everything really be this small? If this is really how the app will look like on Sony Xperia Z, how do I fix it? Is it simply going to get fixed by creating different density icons? But then how do I fix the text size? The text on Sony Xperia Z will be barely readable if it stays the same.

解决方案

Sony Xperia Z use xhpdi so put your resources in xhpdi and you can put your layout under screen size X-large. If you want to test your app in emulator you can use this http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/

这篇关于索尼Xperia Z密度对我来说似乎很奇怪,我的应用程序可以正常工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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