可绘制和布局银河Tab和摩托罗拉XOOM [英] Drawables and Layouts for Galaxy Tab and Motorola XOOM

查看:136
本文介绍了可绘制和布局银河Tab和摩托罗拉XOOM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试我的的Galaxy Tab和摩托罗拉XOOM的仿真器样机应用程序,我不明白,为什么可绘制从错误的文件夹取。我绘制-xhdpi文件夹中,我存储大尺寸的图片。然而,标签将采用可绘制的绘制,华电国际,和XOOM采用提拉 - MDPI文件夹。那么,如何管理我的资源?先谢谢了。

在此外,感觉就像在藻定义视图尺寸不正确移植。我有一些意见,需要加以80sp x 80sp,在手机上提供他们期待权MDPI和HDPI屏幕,但在平板电脑上它们看起来太小了。为什么会这样呢?

解决方案
  

然而,标签将采用可绘制的绘制,华电国际,和XOOM采用提拉 - MDPI文件夹。那么,如何管理我的资源?

没有单一的Galaxy Tab的设备,所以我不知道你指的是有哪一个。 Xoom的是一个 -mdpi 设备。我预计,Galaxy Tab的10.1是 -mdpi 为好。然而,到了最后,设备制造商将选择值,他们认为提供最佳的结果现有的应用程序。

I'm testing my app at Galaxy Tab and Motorola XOOM emulator skins, and I can't understand, why the drawables are taken from the wrong folders. I have drawable-xhdpi folder, where I store big size pictures. However, Tab takes drawables from drawable-hdpi, and XOOM uses the drawable-mdpi folder. So, how do I manage my resources? Thanks in advance.

In addition, it feels like view sizes defined in sp are not ported properly. I have some views which need to be 80sp x 80sp, on phones with mdpi and hdpi screens they look right, but on tablets they look too small. Why can this be?

解决方案

However, Tab takes drawables from drawable-hdpi, and XOOM uses the drawable-mdpi folder. So, how do I manage my resources?

There is no single "Galaxy Tab" device, so I have no idea which one you are referring to there. The XOOM is an -mdpi device. I would expect that the Galaxy Tab 10.1 would be -mdpi as well. However, in the end, device manufacturers will choose values that they feel deliver the best results for existing applications.

这篇关于可绘制和布局银河Tab和摩托罗拉XOOM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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