Skip to content

Conversation

@td-tomasz
Copy link

Change the values in the android:inset attributes to fix the black bars that occur when icons are displayed in some launchers.

…rs that occur when icons are displayed in some launchers
@td-tomasz
Copy link
Author

@mlynch Any news?

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background>
<inset android:drawable="@mipmap/ic_launcher_background" android:inset="16.7%" />
<inset android:drawable="@mipmap/ic_launcher_background" android:inset="16.666666666666668%" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No! it's not enough for API 34. just use 16.6%

ZaLiTHkA added a commit to ZaLiTHkA/capacitor-assets that referenced this pull request Mar 23, 2025
@maxmumford
Copy link

While we wait for this PR to be merged, you can use this trapeze config to update the inset after image generation:

platforms:
  android:
    xml:
      - resFile: mipmap-anydpi-v26/ic_launcher.xml
        target: adaptive-icon/*/inset
        attrs:
          android:inset: 16.6%
      - resFile: mipmap-anydpi-v26/ic_launcher_round.xml
        target: adaptive-icon/*/inset
        attrs:
          android:inset: 16.6%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants