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.