2012-10-26 59 views
1

我已在AndroidManifest标签上设置了应用属性android:图标,但它不工作。我在文件夹drawable-hdpi,drawable-ldpi,drawable-mdpi上添加了一个名为icon.png的图片,但它坚持显示默认的android图标。设置启动图标,但只显示android默认

我在做什么错?

感谢

我AndroidManifest就像这样:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="..." android:versionCode="1" android:versionName="1.0" > 

    <uses-sdk android:minSdkVersion="8" /> 

    <application 
    android:icon="@drawable/icon" 
    android:label="My App Name" 
    android:theme="@style/notitle" 
    android:persistent="true" > 

我还添加了一个外部libray,它的AndroidManifest是:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="....lib" android:versionCode="1" android:versionName="1.0" > 
    <uses-sdk android:minSdkVersion="8" /> 
    <application android:icon="@drawable/icon"> 
    </application> 

</manifest> 
+0

你有没有尝试从设备上卸载应用程序,并清理重建? – sandrstar

+0

是的,卸载,更改图标的名称。它不会改变 –

回答

1

您需要更改的android:具有启动器意图过滤器的活动标签中的图标属性

0

检查一下,如果你的资源中只有一个名为drawable的文件夹。它们可能是一个带有name icon.png的图标,不同于放置在drawable-hdpi,drawable-ldpi,drawable-mdpi文件夹中的图标。