Problem: after SVG processing in VectorDrawable using Android Studio, the image is defective or missing.
1 answer
- Open the SVG image in Adobe Illustrator ;
- Select "Save As."
- In SVG parameters:
Профиль: SVG 1.0, Fonts:Тип: SVG,Сокращение знакового состава: Все глифы. - Save the SVG.
- We import SVG in the usual way in Android Studio.
This method is most effective , especially if there is text . But if there is no Adobe Illustrator, then you can try the methods below . But this is a waste of time (he himself once was so tormented - he was too lazy to put AI).
You can also convert text into curves .
If the error of parsing svg - you need to change:
<svg width="480.003" height="483.333" xmlns="http://www.w3.org/2000/svg"> on
<svg width="480" height="483" xmlns="http://www.w3.org/2000/svg"> I̶l̶i̶ ̶e̶t̶o̶t̶ ̶se̶r̶v̶i̶s̶ . ̶B̶y̶v̶a̶l̶o̶ ̶ch̶t̶o̶ ̶p̶o̶s̶l̶e̶ ̶o̶b̶r̶a̶b̶o̶t̶k̶i̶ ̶o̶s̶t̶a̶v̶a̶l̶i̶s̶̶ ̶p̶r̶o̶b̶l̶e̶m̶y̶, ̶n̶o̶ ̶ya̶ ̶p̶r̶o̶s̶t̶o̶ ̶p̶r̶o̶g̶o̶n̶ya̶l̶ ̶S̶V̶G̶ ̶v̶ ̶v̶e̶k̶t̶o̶r̶n̶o̶m̶ ̶r̶e̶d̶a̶k̶t̶o̶r̶e̶ ̶i̶ ̶o̶p̶ya̶t̶̶ ̶i̶s̶p̶o̶l̶̶z̶o̶v̶a̶l̶ ̶e̶t̶o̶ .
|


