TextDrawable icon indicating copy to clipboard operation
TextDrawable copied to clipboard

Wont work with Glide...

Open softmarshmallow opened this issue 7 years ago • 1 comments

                        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?

softmarshmallow avatar Oct 02 '17 04:10 softmarshmallow

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

jahirfiquitiva avatar Jan 05 '18 02:01 jahirfiquitiva