dependencies {
  implementation 'com.github.bumptech.glide:glide:4.13.2'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
}

먼저 라이브러리 추가 해준다.

GlideUrl url = new GlideUrl(photo.thumbnailUrl, new LazyHeaders.Builder().addHeader("User-Agent", "Andorid").build());
Glide.with(context).load(url).into(holder.imgThumb);

GlideUrl 객체만들고 url 불러오고 이미지에 대입한다.

+ Recent posts