Android Studio > New Image Asset > Configure Image Asset dialogic_launcher.xmlic_launcher_round.xml

最佳答案:

方法1:
如果您有一个PNG,只需复制它并粘贴到Drawable中,并参考清单中的图像名称。

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

        ....
        </application>

方法2:
转到“文件>新建>图像资源”,确保选择PNG图像(具有透明背景)并将“背景形状”设置为“无”。