[英]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: 在我的项目图标中没有出现,我已经更改了androidManifest.xml文件只出现这个:
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: 在Java中:
getActionBar().setIcon(R.drawable.my_icon);
In XML: 在XML中:
<activity android:name=".MyActivity"
android:icon="@drawable/my_icon"
android:label="My new title" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.