An example for the adaptive icons feature in android O
Note: At the moment, devices will choose the rounded icon over the adaptive icon. This may change until the release of android O.
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/background"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>
NOTES:
- You can add all different drawable types: colors, drawables, mipmaps etc.
- If a resource is a image, each file must have the size of 108x108dp in png format.
- The foreground image is visible in an 72x72dp area from the center point.
Comment-Check-Outline icon used in the example is provided by materialdesignicons.com