Reputation: 2650
What are the image dimensions for a Android Adaptive Icon in Android O for the size xxxhdpi? You now have a foreground layer image and a background layer image.
Is the solution to simply use two images of 192x192 pixels?
Upvotes: 19
Views: 29507
Reputation: 7592
Android Studio itself has a generator which can help you create the icons you need.
To do this right click on the res folder -> new -> Image Asset. Then just follow the Wizard.
https://developer.android.com/studio/write/image-asset-studio.html
Upvotes: 10
Reputation: 13865
From the official doc:
Both layers must be sized at 108 x 108 dp.
Adaptive icons support SVG (VectorDrawable). So you can just provide two SVG of dimensions 108 x 108 dp for foreground and background layers.
If you want to use PNG images, you have to calculate the dimensions for other densities.
So for xxxhdpi: 108 * 4 => 432 x 432 pixels.
You can use any dp/px calculator to calculate for other densities.
Upvotes: 35