How to change the name and icon of APP in Android-studio

1. Change the name of the APP

1) : We open app-->manifests-->AndroidManifest.xml

 

Just change the text in the quotation marks of Android: lable="".

Here we change to QQ 

The result of the operation is as follows:

 

 

 

 

When typing codes, we try not to type by hand, and use the software prompts, sometimes the software will not recognize it when typing by hand.

2) : We open res-->values-->string.xml

更改<string name="app_name">QQ</string>
 

The text in the string tag will do.

2: Change the icon of APP

Copy the picture to the ress-->mipmap folder

 

drawable storage picture mipmap storage icon

The format of the picture should be in .png format as much as possible

When we can’t see the extension, we can open My Computer and click View to check the file extension.

 

We open app-->manifests-->AndroidManifest.xml

Also change the text between android:icon="" and android:roundIcon"" quotes

Change to the name of the picture we copied. The name of the picture is head.png. Since it is in the mipmap folder, the name we set here is "@mipmap/head " . The name here is in lowercase letters, try not to have Chinese characters .

 

Modify it in the same way

 

 

4. Finally, we click Run, and you can see that the name and icon of the APP have been modified.

 The rivers and lakes are far away, let us meet at the top.

Guess you like

Origin blog.csdn.net/m0_62059090/article/details/126864306