Android Vector Icon - Add Border

I am wondering if it is possible to add a white frame to the Android Android icon (xml format). I tried to combine a large version of the icon itself, but the result is not as I expected (as you can see in the attached images).

So: is there a way to change the xml to slightly increase the vector itself (for example, a couple of pixels), and then use two different colors in it?

Without border

Overlapping vectors

+4
source share
1 answer

Try adding this to yours pathin Vector xml

<path ....
    android:strokeColor="#FFFFFF" android:strokeWidth="2"
+10
source

All Articles