[英]How to change the icon shown in "running apps" screen in my app?
我已經更改了我的啟動器圖標,但是當我在“正在運行的應用程序”屏幕中時會顯示如下圖所示的 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>
android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round"
該圖標定義在清單中。 當您在 Android Studio 中創建一個新項目時,會創建一個默認項目(正是您所指的項目),它的名稱為 ic_launcher。 要更改圖標,您應該首先將新圖標(一個.png
文件)上傳到項目的 mipmap 文件夾中,並使用您的圖標名稱更改清單中的默認圖標名稱。
例如android:icon="@mipmap/ic_launcher"
到android:icon="@mipmap/your_icon_name"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.