Search code examples
androidiconsmaterial-designandroid-launcherandroid-8.0-oreo

Icons in Android O


Running my projects in Android O device made my launcher icons fit inside a rounded background.

All my icons are squared, following the Material Design rules, and I wanna to keep this way for older Android versions. But I also want to endure Android O design rule, filling all that ugly white space, as in the Maps launcher icon, as shown in the image.

Android O icons

There is any solution for this?


Solution

  • Android O introduces adaptive launcher icons, which can display a variety of shapes across different device models

    For more refer here

    <adaptive-icon>
        <background android:drawable="@color/ic_background"/>
        <foreground android:drawable="@mipmap/ic_foreground"/>
    </adaptive-icon>