从Android Studio中的图像重建或重新生成"ic_launcher.png" [英] Rebuild or regenerate 'ic_launcher.png' from images in Android Studio

查看:248
本文介绍了从Android Studio中的图像重建或重新生成"ic_launcher.png"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首次创建新项目时,该对话框可让您指向 到某个外部.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.

我的问题是:所以,如果一个人已经有一个现有的项目 创建后,是否有地方告诉Studio重新生成 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屋!

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