Android 如何更改“中显示的图标”;“运行应用程序”;我的应用程序中的屏幕?
我已经更改了启动器图标,但当我在“运行应用程序”屏幕中时,会显示android图标,如下图所示: 有人知道我该怎么解决这个问题吗 这是清单文件Android 如何更改“中显示的图标”;“运行应用程序”;我的应用程序中的屏幕?,android,icons,Android,Icons,我已经更改了启动器图标,但当我在“运行应用程序”屏幕中时,会显示android图标,如下图所示: 有人知道我该怎么解决这个问题吗 这是清单文件 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="stelios.concerts"> <!-- To auto-
<?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 Studio中创建一个新项目时,会创建一个默认项目(正是您所指的项目),并且该项目的名称为ic_launcher。 要更改图标,应首先将新图标(一个
.png
文件)上载到项目的mipmap文件夹中,然后更改默认图标的名称,并在清单中添加图标名称
例如。
android:icon=“@mipmap/ic_launcher”
至android:icon=“@mipmap/your_icon_name”
将清单文件添加到您尚未在此处更改图标的位置android:icon=“@mipmap/ic_launcher”它已设置为ic_launcher
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"