如何在 Eclipse 中更改 Android 应用程序的图标?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11737932/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:39:49  来源:igfitidea点击:

How to change the icon of an Android app in Eclipse?

androideclipseandroid-iconsapplication-icon

提问by RSM

I am developing an app using Eclipse IDE Juno and Android SDK.

我正在使用 Eclipse IDE Juno 和 Android SDK 开发一个应用程序。

How do I change my app's icon?

如何更改我的应用程序图标?

回答by Rob R.

Go into your AndroidManifest.xmlfile

进入你的AndroidManifest.xml文件

  • Click on the Application Tab
  • Find the Text Box Labelled "Icon"
  • Then click the "Browse" button at the end of the text box
  • Click the Button Labelled: "Create New Icon..."

  • Create your icon
  • Click Finish
  • Click "Yes to All" if you already have the icon set to something else.
  • 单击应用程序选项卡
  • 找到标有“图标”的文本框
  • 然后单击文本框末尾的“浏览”按钮
  • 单击标记为:“创建新图标...”的按钮

  • 创建你的图标
  • 单击完成
  • 如果您已将图标设置为其他内容,请单击“全部是”。

Enjoy using a gui rather then messing with an image editor! Hope this helps!

享受使用 gui 而不是搞乱图像编辑器的乐趣!希望这可以帮助!

回答by MAC

In your AndroidManifest.xmlfile

在您的AndroidManifest.xml文件中

<application
        android:name="ApplicationClass"
        android:icon="@drawable/ic_launcher"  <--------
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

回答by hanoo

Icon creation wizard

图标创建向导

  • Select your project
  • Ctrl+n
  • Android Icon Set
  • 选择您的项目
  • Ctrl+n
  • 安卓图标集

回答by CENT1PEDE

Look for this on your Manifest.xmlandroid:icon="@drawable/ic_launcher"then change the ic_launcherto the name of your icon which is on your @drawablefolder.

在您的Manifest.xml 中查找此内容,android:icon="@drawable/ic_launcher"然后将其更改ic_launcher为您@drawable文件夹中的图标名称。

回答by mauropellizzer

You can find an easy guide here

你可以在这里找到一个简单的指南

The step are 2: - Copy the icon in the correct folder/folders - Change the AndroidManifest.xml

步骤是 2: - 在正确的文件夹/文件夹中复制图标 - 更改 AndroidManifest.xml

回答by Evan Espey

Rob R.'s answer was definitely the way to go. I tried copying the ic_launcher.png files from another project and Eclipse still wouldn't read them. Going through the manifest is much quicker and easier.

Rob R. 的回答绝对是要走的路。我尝试从另一个项目复制 ic_launcher.png 文件,但 Eclipse 仍然无法读取它们。浏览清单会更快更容易。