Android

Glide 비우기

Machine_웅 2020. 8. 12. 10:57
728x90
반응형
        try{
            if(ItemArray.get(0) != null){
                Glide.with(context)
                        .load(ItemArray.get(0).realUrl)
                        .apply(new RequestOptions()
                                .dontAnimate()
                                .dontTransform()
                                .diskCacheStrategy(DiskCacheStrategy.NONE)
                                .skipMemoryCache(true)
                        )
                        .into(image_01);
            }else{
                Glide.with(context).clear(image_01);
            }
        }catch (Exception e){
            Glide.with(context).clear(image_01);
        }
728x90
반응형