Sony Xperia Z density seems odd to me, will my app work fine on it?

心已入冬 提交于 2019-12-11 14:47:56

问题


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.


回答1:


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/



来源:https://stackoverflow.com/questions/19082547/sony-xperia-z-density-seems-odd-to-me-will-my-app-work-fine-on-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!