本文介绍了安卓:了解绘制文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有尺寸的图像250 * 70像素下绘制文件夹(我刚开始在Android开发,所以我创建绘制文件夹 RES ),我有更高的尺寸相同的图像绘制大型夹;但图像不看如我所料。

I have an image with dimensions 250*70 pixels under drawable folder (I'm just starting out in Android development, so i created drawable folder in res) and I have the same image with higher dimensions in drawable-large folder; but the image is not looking as I expected.

谁能解释背后的3绘制文件夹/目的的原因是什么?

Can anyone explain the reason behind/purpose of 3 drawable folders?

我应该在哪里存储我的形象,使其在两种模式(风景和放大器;纵向)显示正常,在所有的移动设备(包括平板电脑)?

Where should I store my image so that it displays properly in both modes (landscape & portrait) and in all the mobiles (including tablets)?

我希望我的形象来动态地扩展到设备屏幕的大小。

I want my image to scale dynamically to the size of the device screen.

任何人都可以分享您的意见或链接到搜索?

Can anyone share your views or links to search ?

推荐答案

在默认情况下Android的维护三个文件夹为具有不同分辨率的原因,图像背后却是使用或Android设备的分辨率在其上的应用程序会执行。

By default Android maintain three folders for the images with different resolution reason behind it is the use or the resolution of the Android Device on which the application gonna execute.

华电国际图像文件夹保持图像为Android宽屏幕设置或Android手机与更高的分辨率。

hdpi image folder maintain images for the Android Broad Screen set or Android Phones with the Higher resolution.

LDPI较低的图像品质,支持由早期套的Andr​​oid

ldpi for Lower images quality which supports by the earlier sets of the android

MDPI于中图像的支持xhdi images文件夹与最高分辨率的设备。

mdpi for medium images supportxhdi images folder for devices with maximum resolution.

Android操作系统通过检查兼容设备和分辨率选择图像它的自我。

Android OS select the image it self by checking the compatible device and its resolution.

希望它帮助。接受,如果你得到你的解释。

Hope it helps. Accept if you get your explanation.

这篇关于安卓:了解绘制文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 13:39