Android Mipmap? [英] Android Mipmap?

查看:112
本文介绍了Android Mipmap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试使用AndroidStudio生成新的Android项目时,它都会一直隐藏文件夹"drawables".我以前从未发生过这种情况.我一直在寻找,并且已经意识到它正在生成名为"mipmap"的文件夹.我进行了一些搜索,发现它类似于可绘制对象,但是我错过了新的AndroidStudio版本中的一些重大更改吗?如果没有,我如何找回我的Drawables文件夹?我试图重建我的项目,创建新项目,甚至删除我所有的AndroidStudio缓存,首选项和日志. P.S.我正在使用OSX.

Whenever I try to generate a new Android project with AndroidStudio, it keeps hiding the folder "drawables". This has never happened to me before. I've been looking around and I've realized its been generating this folder called "mipmap". I searched around a little bit and I've found this is similar to drawables, but was this some big change in the new AndroidStudio release I missed?? If not how can I get my Drawables folder back? I've tried rebuilding my project, creating new projects and even deleting all my AndroidStudio caches, preferences and logs. P.S. I'm on OSX.

推荐答案

这是Android Studio 1.1中的一项更改.关于使用mipmaps的信息目前还很少,但是如果想了解更多信息,请浏览以下博客.

This is a change that is being put into Android Studio 1.1. There is not much documentation about using mipmaps it at the moment but for a run down take a look at the following blog.

https://androidbycode.wordpress.com/2015/02/14/goodbye-launcher-drawables-hello-mipmaps/

如果要使用drawable而不是mipmap文件夹,则可以重新创建文件夹结构,并在AndroidManifest.xml中使用@drawable而不是@mipmap来访问图像.

If you want to use drawable instead of mipmap folders then you can just recreate the folder structure and access images using @drawable instead of @mipmap in your AndroidManifest.xml.

这篇关于Android Mipmap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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