728x90
반응형
RequestOptions requestOptions = new RequestOptions();
requestOptions = requestOptions.transforms(new CenterCrop(), new RoundedCorners(20));
requestOptions.placeholder(R.drawable.join_photo);
requestOptions.signature(new ObjectKey(System.currentTimeMillis()));
requestOptions.diskCacheStrategy(DiskCacheStrategy.NONE);
requestOptions.skipMemoryCache(false);
try {
if(ItemArray.get(0) != null){
Glide.with(context).clear(image_01);
Glide.with(this)
.asBitmap()
.apply(
requestOptions
)
.load(ItemArray.get(0).photoUrl)
.into(image_01);
image_01.setBackground(null);
}else{
Glide.with(context).clear(image_01);
}
}catch (Exception e){
Glide.with(context).clear(image_01);
}
728x90
반응형
'Android' 카테고리의 다른 글
SharedPreference 사용 (0) | 2020.10.14 |
---|---|
정규식 비밀번호 (0) | 2020.10.07 |
정규식 (0) | 2020.09.21 |
android viewpager indicator 인디케이터 (0) | 2020.09.17 |
구분자 붙이기 (0) | 2020.09.10 |