在两个不同的文件夹中使用相同的绘制的图像,支持所有片。(同一图像中两个文件夹(无变化)) [英] Using same drawable image in two different folder to support all tablets.(same image (no change)in two folders)

查看:303
本文介绍了在两个不同的文件夹中使用相同的绘制的图像,支持所有片。(同一图像中两个文件夹(无变化))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要保持相同的图像在两个文件夹绘,大xhdpi和绘制,XLARGE,华电国际。
图像避免重复减少了内存如何?
我有1920x1080分辨率的照片
任何有用的回答我非常感谢所有。
(例如:如果该图像是屏幕宽度的一半,它应该是半屏幕中的所有片剂)

I want to keep same images in two folders drawable-large-xhdpi and drawable-xlarge-hdpi. avoiding duplication of images reduces memory How? I am having images of 1920x1080 resolution Any usefull answer i am very thankful to all. (example: if the image is half of screen width , it should be half of the screen in all tablets)

推荐答案

如果你想保持完全相同的图像绘制-大xhdpi 绘制-XLARGE - 华电国际那么你显然不真正了解这些 xhdpi 华电国际选择代表,作为图像不能华电国际 xhdpi 在同一时间,所以你的方法基本上是没错的。请阅读这篇文章得到的画面的Andr​​oid是如何管理资产: http://developer.android .COM /引导/做法/ screens_support.html

If you want to keep exactly the same image in drawable-large-xhdpi and drawable-xlarge-hdpi then you apparently do not really understand what these xhdpi and hdpi selectors stands for, as image cannot be hdpi and xhdpi at the same time, so your approach is basically wrong. Please read this article to get the picture of how Android manages assets: http://developer.android.com/guide/practices/screens_support.html

修改

下面的另一篇文章,你需要看的懂的Andr​​oid如何挑选资产,以及如何在缺乏这样的情况下回落:的http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch这将帮助你正确地将资产

Here another article that you need to read to understand how Android picks assets and how it falls back in case of lack of such: http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch that will help you organize your assets correctly

这篇关于在两个不同的文件夹中使用相同的绘制的图像,支持所有片。(同一图像中两个文件夹(无变化))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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