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

Wont work with Glide... #63

Open
softmarshmallow opened this issue Oct 2, 2017 · 1 comment
Open

Wont work with Glide... #63

softmarshmallow opened this issue Oct 2, 2017 · 1 comment

Comments

@softmarshmallow
Copy link

softmarshmallow commented Oct 2, 2017

                        TextDrawable drawable = TextDrawable.builder()
                                .buildRect(takeoffUserProfileModel.displayName, Color.RED);
                        
                        Glide.with(context).load(drawable.getCurrent()).into(
                                profilePhotoImageView);

and throws

java.lang.IllegalArgumentException: Unknown type class com.amulyakhare.textdrawable.TextDrawable. You must provide a Model of a type for which there is a registered ModelLoader, if you are using a custom model, you must first call Glide#register with a ModelLoaderFactory for your custom model class

any solutions?

@jahirfiquitiva
Copy link

The error already tells you what you have to do for this to work. Check Glide's Documentation

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

No branches or pull requests

2 participants