1

I noticed that some app have circle shape on any devices.

Circle image

enter image description here

I want the same for my app. But Image Asset doesn't allow to choose transparent background for adaptive icons. I tried to set transparent png image as background but it fills black color on my device.

Black color image

enter image description here

android manifest:

<?xml version="1.0" encoding="utf-8"?>

<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">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>

            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
</application>

backgroud image

foreground image

How to make an cirlce icon for all themes and devices?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Dima
  • 1,189
  • 1
  • 8
  • 12

1 Answers1

0

Make a round icon with transparent background. Add your icon in drawable or mipmap then go to manifest changes these two lines. You will be good to go for every device and theme

 android:icon="@drawable/icon"
 android:roundIcon="@drawable/icon"
ahmad bajwa
  • 966
  • 2
  • 10
  • 30