Skip to content

Wont work with Glide... #63

@softmarshmallow

Description

@softmarshmallow
                        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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions