且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的工作室。可绘制文件夹和大小?

更新时间:2023-01-03 22:45:35

  

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

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

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

Android的工作室。可绘制文件夹和大小?

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

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

Android的工作室。可绘制文件夹和大小?

这很像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.