简体   繁体   English

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

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

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? 如何更改应用程序的图标?

Go into your AndroidManifest.xml file 进入AndroidManifest.xml文件

  • Click on the Application Tab 单击“应用程序”选项卡
  • Find the Text Box Labelled "Icon" 找到标有“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! 享受使用gui而不是使用图像编辑器! Hope this helps! 希望这可以帮助!

In your AndroidManifest.xml file AndroidManifest.xml文件中

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

Icon creation wizard 图标创建向导

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

在你的Manifest.xml android:icon="@drawable/ic_launcher"ic_launcher ,然后将ic_launcher更改为@drawable文件夹上的图标名称。

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

Rob R.'s answer was definitely the way to go. Rob R.的答案肯定是要走的路。 I tried copying the ic_launcher.png files from another project and Eclipse still wouldn't read them. 我尝试从另一个项目复制ic_launcher.png文件,Eclipse仍然不会读取它们。 Going through the manifest is much quicker and easier. 浏览清单会更快更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM