At Google IO, the Tools team briefly showed the possibility to define vector drawables with a specific suffix (e.g. ic_heart_48px.xml) that will then be converted to pngs of all necessary densities. Unfortunately I don't find any documentation about this feature besides the IO recordings.
Is this a feature of the Build Tools or of Android Studio? Assuming it's part of the Build Tools, is it available already? Which version should I be using? Do I have to enable the feature explicitly?
Does Google provide its material icons in the Android xml vector format?
Google is starting to provide material design icons in the VectorDrawable xml format.
The git repository is hosted here:
https://github.com/google/material-design-icons
At the start of Google I/O Material design icons in VectorDrawable xml format were added to the repository (along with other updates documented here). They are located in folders named
drawable-anydpi-v21
. For example, here are the communication icons in xml.Here is what Google's comments say about the addition of these new Vector Drawables:
Update: The post announcing Android Studio 1.3 being promoted to beta states that vector rasterization support is still not enabled due to various bugs.