question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Glide and insert into TouchImageView (with solution)

See original GitHub issue

I have been trying to use glide in my app, but it won’t load any images:

Glide.with(this).load(urinormal).into(exampleTouchImageView);

before that I was using this code which worked fine:

exampleTouchImageView.setImageURI(urinormal);

Using Glide with a normal ImageView also works, but I need zooming.

I also tried putting it into a bitmap, but I couldn’t do that on the main thread and AsyncTasks get buggy here as I have a ViewPager.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

7reactions
edysolisariteccommented, May 21, 2019

Here is the solution!

GlideApp.with(this)
        .load(url)
        .thumbnail(0.1f)
        .into(new CustomTarget<Drawable>() {
            @Override
            public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
               touchImageView.setImageDrawable(resource);
            }

            @Override
            public void onLoadCleared(@Nullable Drawable placeholder) {

            }
        });
0reactions
hannesa2commented, Aug 14, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Displaying Images with the Glide Library - CodePath Cliffnotes
Glide is an Image Loader Library for Android developed by bumptech and is a library that is recommended by Google. It has been...
Read more >
How to load bitmap in touchimageview through Glide SDK 4.3 ...
Am trying to load a file as bitmap into TouchImageview. If I use normal image view instead of Touch image view Glide library...
Read more >
TouchImageView - Bountysource
Created 5 years ago in MikeOrtiz/TouchImageView with 8 comments. I have been trying to use glide in my app, but it won't load...
Read more >
Adds touch functionality to Android ImageView.
... version // or implementation 'com.github.MikeOrtiz:TouchImageView:$LAST_VERSION' // Android X } ... Glide and insert into TouchImageView (with solution).
Read more >
wesome-android - brave-sailor - 博客园
greenDAO greenDAO is a light & fast ORM solution for Android that maps ... glide An image loading and caching library for Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found