Android Studio 应用程序图标

标签 android android-studio

(我已经更新了帖子)

下面是我的项目:

list :

    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:label="@string/app_name"

贴图: 创建者:新建 > 图像资源 我选择了 Launcher Icons (Adaptative and Legacy)

Icons

此外,当我打开它们中的任何一个时,我会看到我想要的图标:

Icon

现在,启动器图标工作正常:

Launcher Icon

我遇到的问题是它不想更新在我要选择另一个应用程序时显示的图标。

Problem

最佳答案

您必须更新 list 文件中应用程序标签的两个属性。

   android:icon="@mipmap/ic_launcher" <-- Change this one
    android:roundIcon="@mipmap/ic_launcher_round" //<-- and this one

或者你可以删除

android:roundIcon="@mipmap/ic_launcher_round" //<-- and this one

确保您已将所有 mipmap/drawable 放置在正确的位置和所有 dpi。

如果您还有问题,请联系我。

关于Android Studio 应用程序图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47893199/

相关文章:

android - 每个新项目都会在 Android Studio 中下载大量的 gradle 版本和 jcenter.bintray 文件

android - 升级到Canary 6后,在API 16 AVD上运行Kotlin项目的ResourceNotFoundFoundException

android - AIR/as3 阶段按键监听器覆盖输入文本字段

java - 选项卡内的 fragment

java - SQLite 数据库 : Android studio custom auto incrementation

Android Studio 2.3 正在生成未对齐的签名 APK 而不是 zipaligned?

android - Flutter gradle.build 错误 : Could not get unknown property 'compileSdkVersion' for extension 'flutter' of type FlutterExtension

Android RecyclerView notifyItemRangeChanged 与 notifyItemChanged

java - 如何在 Firebase 中仅获取子 key

android - 如何更改上下文操作栏的文本颜色?安卓