Controlling which vector drawable need png is done with the folder name.
drawable-v22 skips compatibility mode and doesn't trigger them.

If you're doing pre-processing, I would suggest putting the files somewhere
else than the normal res folders, and make a gradle task that generates the
resources as you need and register that task as one that generate resources.

On Tue, Nov 3, 2015 at 8:23 AM, Rustam G <[email protected]> wrote:

> Hi,
>
> I'm using an amazing library <https://github.com/wnafee/vector-compat> which
> lets me to use AnimatedVectorDrawables
> <https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html>
>  on
> Pre-Lollipop devices as well as VectorDrawables
> <https://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html>.
> Now I am able to transform my vector drawables when I use
> com.android.tools.build:gradle:*1.3.1*. Generating PNGs from my
> VectorDrawables breaks that ability on com.android.tools.build:gradle:
> *1.4.0-beta1* and higher.
>
> It would be great if I could set a flag that tells build tools not to
> generate PNGs. It would be even more useful If I could specify for which
> vector-drawables I need PNGs to be generated. Probably it is better to have
> a tool inside the IDE to generate PNGs not during build time but when I
> Import a Vector Asset.
>
>
> Thanks,
> Rustam
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to