如何在“最近"屏幕中更改应用程序图标? [英] How do I change the app icon in the 'Recents' Screen?
问题描述
我知道如何更改应用程序的图标,但是当我查看
我的近期记录"屏幕中的图标:
这是我的"AndroidManifest.xml"的应用程序"标签
<应用程序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">
我已经尝试了在该平台上找到的许多解决方案(不起作用),例如:
- 文件->新->图像资产->选择图像.
- 安装和安装取消安装该应用程序
- 建立和建立清洁项目
- 删除项目中的所有默认图标
- 拖动&将我的图标从mipmap文件夹拖放到可绘制对象
还有其他可能的解决方案吗?预先谢谢你!
好,我找到了解决方案,并决定为将来会遇到相同问题的任何人提供答案.
我通过在 AndroidManifest.xml
的主要 activity
标签声明中添加 android:icon ="@ mipmap/iconout"
来修复此问题>,就像这样:
<活动android:icon ="@ mipmap/iconout";android:name =" .MainActivity"android:label =" @ string/app_name"android:theme =" @ style/AppTheme.NoActionBar"><意图过滤器>< action android:name =" android.intent.action.MAIN"/>< category android:name =" android.intent.category.LAUNCHER"/></intent-filter></activity>
这是最终结果:
I know how to change the icon of my app, but when I look at the Recents Screen, the icon is the default one.
App icon (all good so far):
Icon in my Recents Screen:
This is the 'application' tag of my '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">
I've tried many solutions that I found on this platorm (that didn't work), like:
- file->new->image asset->choose image..
- install & unistall the app
- build & clean project
- delete all the default icons on my project
- drag & drop my icon to drawable from mipmap folder
Any other possible solutions? Thank you in advance!
Ok I found the solution and decided to answer for anyone that will encounter the same problem in the future.
I fixed it by adding android:icon="@mipmap/iconout"
in the main activity
tag declaration in the AndroidManifest.xml
, like so:
<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>
And here's the final result:
这篇关于如何在“最近"屏幕中更改应用程序图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!