Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for XML based drawables #350

Closed
alex2069 opened this issue Feb 23, 2015 · 2 comments
Closed

No support for XML based drawables #350

alex2069 opened this issue Feb 23, 2015 · 2 comments

Comments

@alex2069
Copy link

We have a placeholder shape drawable (or sometimes shown directly as .load(R.drawable.abc)) which fails to display. The onException listener is called, but e is null.

The logs contain only:

com.example.app D/skia﹕ --- SkImageDecoder::Factory returned null

Glide: 3.5.2
Tested on Genymotion v4.4.2

The drawable:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="#ffabcdef"/>
</shape>
@sjudd
Copy link
Collaborator

sjudd commented Feb 24, 2015

Not totally surprising, BitmapFactory will handle image based drawables, but not shapes or ripples etc. We may be able to fix this in 4.0, but probably not before.

@TWiStErRob
Copy link
Collaborator

TWiStErRob commented Mar 18, 2016

Here's a list of currently known (and wanted non-bitmap drawables):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants