Android 开发期间 app/src/main/res/mipmap-* 下面是什么?
What is under app/src/main/res/mipmap-* during Android development?
我在此处 https://developer.android.com/guide/topics/resources/drawable-resource.html 的文档中看到,所有类型的可绘制资源都位于 .../res/drawable
.
下
两个可绘制资源都不在 .../res/mipmap-*
.
下
那么,这是否意味着 .../res/mipmap-*
不包含任何可绘制对象?如果我创建图像文件,将其缩放为各种大小并放入 .../res/mipmap-*
,与 ic_launcher
布局相同,我是否可以从 XML 将此资源引用为可绘制资源?
So, does this mean that .../res/mipmap-* doesn't contain any drawables?
它包含位图,主要是 launcher icons。
will I be able to refer this resource from XMLs as drawable?
不,但您可以将该资源称为 mipmap (@mipmap/ic_launcher
),就像您在启动器图标的清单中看到的一样。
我在此处 https://developer.android.com/guide/topics/resources/drawable-resource.html 的文档中看到,所有类型的可绘制资源都位于 .../res/drawable
.
两个可绘制资源都不在 .../res/mipmap-*
.
那么,这是否意味着 .../res/mipmap-*
不包含任何可绘制对象?如果我创建图像文件,将其缩放为各种大小并放入 .../res/mipmap-*
,与 ic_launcher
布局相同,我是否可以从 XML 将此资源引用为可绘制资源?
So, does this mean that .../res/mipmap-* doesn't contain any drawables?
它包含位图,主要是 launcher icons。
will I be able to refer this resource from XMLs as drawable?
不,但您可以将该资源称为 mipmap (@mipmap/ic_launcher
),就像您在启动器图标的清单中看到的一样。