简体   繁体   中英

Icon android dont appears

Can someone help me, how I put this icon in my project? 在此输入图像描述

In my project icon doesn't appears and I already change the androidManifest.xml file Only appears this: 在此输入图像描述 Thanks

确保清单中的属性存在于应用程序标记中:android:icon =“@ drawable / ic_launcher”

转到清单文件并在application标记中插入此代码:

    android:icon="@drawable/yourPictureAtDrawable"

In the manifest file you have to edit the tag.

In the activity tag add the following:

android:icon="@drawable/icon"

In Java:

getActionBar().setIcon(R.drawable.my_icon);

In XML:

<activity android:name=".MyActivity" 
       android:icon="@drawable/my_icon" 
       android:label="My new title" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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