From 037f0ee7c8f5e5532fc9f748b698fc06675ffd9a Mon Sep 17 00:00:00 2001 From: Matthias Giger Date: Tue, 20 Dec 2022 15:13:09 +0100 Subject: [PATCH] docs(documentation): additional note about the foreground icon size --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2084d9..2e1623c 100644 --- a/README.md +++ b/README.md @@ -50,14 +50,16 @@ The icon can be configured in `package.json` under the `numic` property. This wi Adaptive icons use vector graphics and are composed of a foreground and a background image. Due to using vector graphics only one image size is required. This plugin will generate all the required configuration files as well as the scaled legacy images in various sizes for older devices. -For web developers the easiest way to generate the vector drawables used on Android for adaptive icons is to convert from an SVG. The vector drawable specification is largely the same as SVG so this plugin is able to take SVG icons as input and convert them to XML files in the Android Drawable syntax. It's also possible to directly pass in XML files that are already in the vector drawable format. To generate vector drawables from scratch or debug the output of the conversion from SVG by this plugin, open the `/android` folder in Android Studio. There it's possible to edit and directly preview the images. To get a preview of the resulting images for various Android versions click `Resource Manager` on the left -> `+` icon -> `Image Asset` +For web developers the easiest way to generate the vector drawables used on Android for adaptive icons is to convert from an SVG. The vector drawable specification is largely the same as SVG so this plugin is able to take SVG icons as input and convert them to XML files in the Android Drawable syntax. It's also possible to directly pass in XML files that are already in the vector drawable format. To generate vector drawables from scratch or debug the output of the conversion from SVG by this plugin, open the `/android` folder in Android Studio. There it's possible to edit and directly preview the images. To get a preview of the resulting images for various Android versions click `Resource Manager` on the left -> `+` icon -> `Image Asset`.

Adaptive Icon preview in Android Studio

+To avoid that parts of the foreground icon are cut off the icon should be centered and only take up about **60%** of the width and height. +

- ChatGPT's attempt at Adaptive Icons for React Native + ChatGPT's attempt at Adaptive Icons for React Native