chiuki / android-swipe-image-viewer

Android Image Viewer that moves to the previous and next images by swiping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i use Glide library to load remote images?

BhoomiKhan opened this issue · comments

Your project helped me a lot, i just want to know the way to use glide library to load remote images from server. I'm using PhotoView library for zooming feature.

add in build.gradle dependencies: implementation 'com.github.bumptech.glide:glide:4.11.0'

Then

Glide.with(picture_view.getContext())
                        .load("<your_remote_link>")
                        .into(picture_view);

Where picture_view is an image_view element in your XML file.

@BhoomiKhan