我知道如何更改我的应用程序的图标,但是当我查看“最近使用的屏幕”时,该图标是默认的。
应用程序图标(到目前为止一切正常):
我最近使用屏幕中的图标:
这是我的“AndroidManifest.xml”的“应用程序”标签
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/iconout"
android:roundIcon="@mipmap/iconout"
android:logo="@mipmap/iconout"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
我已经尝试了很多我在这个平台上找到的解决方案(没有用),比如:
还有其他可能的解决方案吗?先感谢您!
好的,我找到了解决方案,并决定为将来遇到相同问题的任何人回答。
我通过android:icon="@mipmap/iconout"
在 中添加主activity
标记声明来修复它AndroidManifest.xml
,如下所示:
<activity
android:icon="@mipmap/iconout"
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
这是最终结果:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句