如何在我的应用程序中更改“正在运行的应用程序”屏幕中显示的图标?

3

我已经更换了我的启动器图标,但当我在“正在运行的应用程序”屏幕中时,它显示如下图所示的 Android 图标:

截图

有人知道如何解决吗?

这是清单文件。

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="stelios.concerts">

    <!-- To auto-complete the email text field in the login form with the user's emails -->
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.READ_PROFILE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"

        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".Swipe_activity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"

            android:theme="@style/AppTheme.NoActionBar">

        </activity>
        <activity
            android:name=".LoginActivity"
            android:label="@string/title_activity_login"
            android:screenOrientation="portrait">

        </activity>
        <activity android:name=".SplashActivity"
            android:theme="@style/SplashTheme"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

请添加您的清单文件。 - Deepak Kumar
1
你还没有在这里更改你的图标 android:icon="@mipmap/ic_launcher" 它被设置为ic_launcher。 - Deepak Kumar
2个回答

3
  1. 设置图标。
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
  1. 如果无法正常运行,尝试重新启动手机。

0

该图标在清单文件中被定义。在Android Studio中创建新项目时,默认会创建一个(正是您所指的)并将其命名为ic_launcher。 要更改图标,您应该先上传项目的mipmap文件夹中的新图标(.png文件),然后使用您的图标名称更改清单中声明的默认图标名称。

例如:android:icon="@mipmap/ic_launcher" 可以改为 android:icon="@mipmap/your_icon_name"


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接