Implementation method of Android App changing application icon

Implementation method of Android App changing application icon

Generally, we set the app icon in androidmanifest.xml and specify it through the application Android: icon attribute. The writing method is as follows:

Due to the advent of the new year, the product needs to replace an application icon for the latest version. OK, one minute. As above, directly replace the app_ Icon.png icon.

However, the test students found that after replacing the icon, the previous icon is still displayed on mobile phones such as Xiaomi 5, Huawei 6plus, LETV 1s, Xiaomi 2S and Meizu mx5.

Ingenious treatment method:

Reassign the new icon through the application entry activity Android: icon property. At present, it has passed the test and the actual measurement basically takes effect in time (except for the theme of some models). It is written as follows:

Point to the new application icon through the entry activity Android: icon = "@ drawable / new_app_icon".

The above is a detailed explanation of the example of Android icon change. If you have any questions, please leave a message or go to the community of this site for communication and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>