对于谷歌Nexus和银河标签(7和10)的布局和drwable文件夹 [英] Layout and drwable folders for Google Nexus and Galaxy tab (7 and 10)

查看:78
本文介绍了对于谷歌Nexus和银河标签(7和10)的布局和drwable文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很迷惑,现在一套用于布局和绘制文件夹。我想,我的显卡支持的Galaxy Nexus 7的华硕和银河标签。我prepare一个演示应用程序第一,我所看到的都支持华电国际的文件夹与正常布局。但两者具有不同的分辨率和密度。所以我的显卡不好好看看银河标签。我搜索和发现这么多的链接,并通过这一点,但不是为我工作。不知道我该怎么办错了。请纠正我,或者给我任何建议。

preferred链接:<一个href=\"http://stackoverflow.com/questions/14855128/galaxy-tab-7-vs-nexus-7-different-dimensions-res-folder\">galaxy标签7 VS的Nexus 7尺寸不同res文件夹

布局夹的谷歌Nexus 7和10


解决方案

的Nexus7是一个独特的装置,具有有些奇怪dpi的结构。

有关更多的比你可能需要知道,这里是一个很好的解释(从戴安娜Hackborn - 在谷歌在Android工程师):的戴安娜Hackborn解释了Nexus7 的独特的解决方案。

它独特的分辨率和缩放它们

-

的Nexus7将利用资源,走出xhdpi夹。

这是第一次这项工作已经完成,所以绝对是独一无二的(并解释了为什么您可能会看到奇怪的行为)。

I am very confuse now for set layout and drawable folder. I want that my graphics support both Galaxy nexus 7 asus and Galaxy tab. I prepare a demo app first and what I saw both support hdpi folder with normal layout. But both have different resolution and density. so my graphics not good look in Galaxy tab. I search and find so many links and go through that but not working for me. Don't know what mistake i do. Please correct me or give me any suggestions.

Preferred link: galaxy tab 7 vs nexus 7 different dimensions res folder

Layout folders for Google Nexus 7 and 10

解决方案

The Nexus7 is a unique device, with a somewhat strange dpi structure.

For more than you probably need to know, here is a very good explanation (from Dianne Hackborn - an Android engineer at Google): Dianne Hackborn explains the unique resolution of the Nexus7

The Nexus7 will use resources out of the xhdpi folder - and scale them for it's unique resolution.

This is the first time this has been done, so is definitely unique (and explains why you might be seeing strange behavior).

这篇关于对于谷歌Nexus和银河标签(7和10)的布局和drwable文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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