Android的工作室。可绘制文件夹和大小? [英] Android Studio. Drawables folder and sizes?

查看:146
本文介绍了Android的工作室。可绘制文件夹和大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Eclipse开发者,最近切换到Android工作室。

我知道,绘制文件夹是我要上传的所有我会在我的Andr​​oid项目使用的图像,但与图像尺寸发生了什么?在Eclipse中有每个尺寸(xxhdpi,xhdpi,华电国际...)

不同的文件夹

用什么方法,我应该拿什么来获得图像和设备的兼容性最好?

感谢。

解决方案
  

在Eclipse中有不同的文件夹,每个尺寸(xxhdpi,xhdpi,华电国际...)

他们有在Android的工作室了。而Android工具团队还挺把它们藏起来。

如果你正上方左侧的工程资源管理器树啄,你会看到一个下拉,一个可能说Android的现在:

这是Android项目视图,一个给你一个有点合成看看你的项目,倒塌之类的资源集和sourcesets隐藏这些细节。

Eclipse用户可能会更快乐的经典项目视图,您通过单击下拉并切换到项目:

这很像Eclipse的包资源管理器,你在哪里得到的这是怎么回事实际文件系统视图,完全与资源集目录。

这是文件系统上的所有相同的东西,但在Android项目视图口罩它一下。

I'm an Eclipse developer and recently switched to Android Studio.

I know that "drawable" folder is where I must upload all the images I'm going to use in my Android project but, what happens with the image sizes? In Eclipse there are different folders for each size (xxhdpi, xhdpi, hdpi...)

What method should I use now to get the best compatibility with images and devices?

Thanks.

解决方案

In Eclipse there are different folders for each size (xxhdpi, xhdpi, hdpi...)

They are there in Android Studio too. The Android Tools team kinda hid them.

If you look just above the project explorer tree thingy on the left, you should see a drop-down, one that probably says "Android" right now:

That is the Android project view, one that gives you a somewhat synthetic look at your project, collapsing things like resource sets and sourcesets to hide those details.

Eclipse users will probably be happier with the classic project view, which you get by clicking that drop-down and switching it to "Project":

This works much like Eclipse's Package Explorer, where you get an actual filesystem view of what's going on, complete with resource set directories.

It's all the same stuff on the filesystem, but the Android project view masks it a bit.

这篇关于Android的工作室。可绘制文件夹和大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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