You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
SpriteFactory.fromResource returns null for XML drawables #3107
It seems that decodeResource doesn't work for drawables defined in xml. It is trying to directly load the referenced file instead of loading the files referenced by the xml. See this SO-post.
Note: ic_flag is a vector drawable generated with Android Gradle Plugin 1.5.0
Activity
tobrun commentedon Dec 18, 2015
Taking this up, by default
fromResourceinSpriteFactoryonly allowsBitmap.Will expand support to handle
VectorDrawableand others as well.[android] #3107 - allow other type of drawable to be used from a reso…