I
I
ivan05122020-07-29 23:14:13
Android
ivan0512, 2020-07-29 23:14:13

How to remove padding from an icon?

I create an icon in android studio in a similar way.
5f21d82e6a984687668840.jpeg
This is how it is created in unnecessary paddings, which makes it difficult to accurately set the indent.
How can this be avoided? Why is the studio adding them?
5f21d8892eed6539420408.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
one pavel, 2020-07-29
@onepavel

The studio has nothing to do with it, this is how the markup of the icons is done.
If you don't like it, open the svg file for editing and edit the xml as you need.

A
alekseyHunter, 2020-07-30
@alekseyHunter

Draw your vector icon without padding in Adobe Illustrator, for example, and paste the converted code into the drawable XML file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question