Add support for android's VectorDrawable xml format

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
fttpic
Posts: 3
Joined: 2016-12-20T11:14:36-07:00
Authentication code: 1151

Add support for android's VectorDrawable xml format

Post by fttpic » 2016-12-20T11:18:58-07:00

You need to decompile the apk using "APK Easy Tool" or similar.
The attached file belongs to:

Android application:
package:/system/priv-app/LGSystemUI/LGSystemUI.apk=com.android.systemui

Resource file inside the apk once decompiled:
res/drawable-nodpi-v4/icon.xml

More information:
https://developer.android.com/reference ... wable.html
https://developer.android.com/studio/wr ... tudio.html
http://stackoverflow.com/questions/3309 ... r-drawable

XML example file:
https://bugzilla.gnome.org/attachment.cgi?id=342173

User avatar
dlemstra
Posts: 1386
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Add support for android's VectorDrawable xml format

Post by dlemstra » 2016-12-20T12:24:50-07:00

I moved your topic to the developers part because you are asking for an extra feature. We don't consider this a bug.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

fttpic
Posts: 3
Joined: 2016-12-20T11:14:36-07:00
Authentication code: 1151

Re: Add support for android's VectorDrawable xml format

Post by fttpic » 2016-12-20T12:26:36-07:00

Thanks I posted on bugs since there's no request feature subforum.

User avatar
magick
Site Admin
Posts: 10692
Joined: 2003-05-31T11:32:55-07:00

Re: Add support for android's VectorDrawable xml format

Post by magick » 2016-12-20T18:32:06-07:00

Can you track down several more Android XML files and their corresponding rendering and post a URL to download them here. We'll use the vector set to verify our vector drawable coder is working properly.

What is the usual file extension for an Android vector drawable?

fttpic
Posts: 3
Joined: 2016-12-20T11:14:36-07:00
Authentication code: 1151

Re: Add support for android's VectorDrawable xml format

Post by fttpic » 2017-04-17T06:44:43-07:00

More information:
This web application converts SVG to VectorDrawable, you just need to support both formats:
-> https://ozodrukh.github.io/Svg2MrVector/
-> https://github.com/inloop/svg2android
-> https://github.com/telly/MrVector

Tried to visualize several xml files as pictures with Android Studio, but it's much more difficult that it should.

jfinkhaeuser
Posts: 1
Joined: 2017-11-10T02:51:12-07:00
Authentication code: 1152

Re: Add support for android's VectorDrawable xml format

Post by jfinkhaeuser » 2017-11-10T03:09:54-07:00

I would love to know what the status of this is!

Post Reply