I have an SVG that I'm using as the foreground for my adaptive icon. It's height and width are 128px128px. But when I go to drawable>New>Vector Asset and create an XML
my viewportWidth
is disproportionately large.
My icon instead of being nested inside my background instead takes up the whole page and cover even the background. I tried using Inkscape and reduced the size of my SVG and sent it through drawable>New>Vector Asset again, but my icon is still gigantic, covering everything...but it's just a blurry blob.
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="128dp"
android:height="128dp"
android:viewportWidth="1280"
android:viewportHeight="1280">
Don't use SVG
for icon. Download the highest resolution png for your icon.
Then add that to your minmap
directory. It will automatically generate icons of all sizes.
Right click on minmap - > Image asset
There you can position the icon