简体   繁体   中英

Android change Launcher Icon

I added a new launcher icon to my application by following the path below.

Res> new > Immage Asset 
            

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

and AndroidManifest.xml look like that:

 <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

I want to create a circle logo, but my phone has a square logo, but a circle on the emulator.What could this be caused by? (also the logo of all the apps on my phone is square)

You app icon, is basically a background with a mask on top. Different Android manufacturers use different masks. Some use a square image, and some use rounded images. Hence, the result is different for many devices. Looks like your device happens to use a square mask.

A lot of devices have an option to change this in the general settings of your phone. Eg for One Plus, you can find it under "Customisation | System Icons"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM