从 Android Studio 中的图像重建或重新生成“ic_launcher.png" [英] Rebuild or regenerate 'ic_launcher.png' from images in Android Studio
问题描述
当人们第一次创建一个新项目时,该对话框让您指向到一些外部 .PNG 文件,然后当该对话框完成时,它生成 4 种不同像素大小的图像用作一个启动器图标.
When one first creates a new project, that dialog lets you point to some external .PNG file, and then when that dialog completes, it generates 4 different pixel-sizes of images for use as a launcher-icon.
我的问题是:那么,如果一个人已经有一个现有的项目创建了,有什么地方可以告诉工作室重新生成4 个新的此类文件,只需将其重新指向其他地方即可其他 .PNG?
My question is: So, if one already has an existing project created, is there someplace to tell the Studio to re-generate 4 NEW such files, by just re-pointing it elsewhere, to some other .PNG?
我突然想到我可以开始一个新项目,然后手动复制迄今为止开发的所有其他文件,例如.JAVA 和 .XML 文件等,但这似乎很多工作(我希望不需要).
It occurred to me that I could start a new project and then manually copy all the other files developed so far, such as the .JAVA and .XML files, etc, but that seems like a lot of work (that I hope won't be necessary).
推荐答案
对于 Android Studio 0.4.0
及更高版本,点击File > New > Image Asset
".
For Android Studio 0.4.0
and later, click "File > New > Image Asset
".
这篇关于从 Android Studio 中的图像重建或重新生成“ic_launcher.png"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!