Using Adaptive Icons for Android builds

Android 8.0 (API level 26) introduces adaptive launcher icons. Adaptive Icons consists of a background and foreground layer and the OS can apply visual effects to the layers, such as parallax or pulsing.

The Defold bundler and game.project does only support basic icon drawables (PNGs), but it’s quite easy to also add support for adaptive icons. This is achieved through the use of the bundle_resources setting in game.project which allows bundling of files “as-is” into the resulting APK.

I’ve created an example of this setup here for anyone who wishes to spice up their Android launcher icons: https://github.com/britzl/defold-adaptive_icons

19 Likes

Already use it, thanks! :wink:

5 Likes