If I put my drawables to drawable-v22 folder I get 
ResourceNotFoundException on pre-API v22 devices. I don't need the feature 
of rasterization vector drawables because I have the library which makes 
them work just fine on API 14+ without any efforts from my side. 

Trying to avoid the generation of PNGs by making changes to the source code 
seems like hacky workaround.

The idea to generate PNGs from VectorDrawable is good but I need to have an 
opportunity to transform one VectorDrawable to another. That 
is what AnimatedVectorDrawable designed for. 

I would like to use DataBindings as it seems to be a nice tool but I can't 
update to tools version higher than 1.3.1 because of PNGs generation.

Thank you.

On Tue, Nov 3, 2015 at 22:10:53 UTC+4 Xavier Ducrohet wrote:
>
> 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] <javascript:>
> > 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] <javascript:>.
>> 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