wnafee / vector-compat

A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop
1.23k stars 161 forks source link

Out of memory errors #27

Open scruffyfox opened 9 years ago

scruffyfox commented 9 years ago

Is there any way with this library to load in the drawable at a scaled size? my drawables bounds are 512dp x 512dp but are also displayed at a smaller size (about 96dp x 96dp) and is causing memory crashes because its still rendering the drawable to a bitmap at a size of 512dp x 512dp.

Root cause is the method createCachedBitmapIfNeeded

OlivierRoberdet commented 8 years ago

I have the same issue.