How to remove background from the app icon

I buy RocketWeb from codecanyon and set up everything but when to run on device get a background with my logo. I want to use transparent background.

Solution 1:
It’s android studio default functionality, to remove the background edit ic_launcher.xml (anydpi-v26) and ic_launcher_round.xml (anydpi-v26) and set the background as “@color/transparent”.

ic_launcher.xml (anydpi-v26):

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/transparent"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

ic_launcher_round.xml (anydpi-v26)

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/transparent"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

Solution 2:

In case if you get a black background. Then in the drawable folder add a png icon with the name “ic_icon.png” (please notice .PNG is not supported). Then add on the application.

android:icon="@drawable/ic_icon"

Leave a Reply