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

.thumbnail() should allow different forms of loading #107

Closed
TWiStErRob opened this issue Sep 1, 2014 · 0 comments
Closed

.thumbnail() should allow different forms of loading #107

TWiStErRob opened this issue Sep 1, 2014 · 0 comments
Assignees
Milestone

Comments

@TWiStErRob
Copy link
Collaborator

The following examples should work:

    Glide.with(mContext)
    .load(my.package.name.R.drawable.thumbnail)
    .thumbnail(
        Glide.with(mContext)
        .load("android.resource://my.package.name/drawable/thumbnail")
    )
    .into(type);

The method thumbnail(DrawableRequestBuilder) in the type DrawableRequestBuilder is not applicable for the arguments (DrawableTypeRequest)

    Glide.with(mContext)
    .load("android.resource://my.package.name/drawable/thumbnail")
    .thumbnail(
        Glide.with(mContext)
        // of course properly called with an object
        .using((ModelLoader<DriveId, Contents>)null, Contents.class)
        .load(driveId)
        .as(BitmapDrawable.class)
    )
    .into(type);

The method thumbnail(DrawableRequestBuilder) in the type DrawableRequestBuilder is not applicable for the arguments (GenericTranscodeRequest<DriveId,Contents,BitmapDrawable>)

This looks very much like what .placeholder() is for, but you can imagine changing those arguments dynamically per image.

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

2 participants