caching - Glide-Android- loading (fullscreen) images not working -


i using glide library loading images in recyclerview works fine. when click item, urls data sent using intent.

//rvfragment    . . . glide.with(getactivity()).load(gifurl[position]).diskcachestrategy(diskcachestrategy.all).into(holder.mpostiv); holder.mpostiv.setonclicklistener(new button.onclicklistener() {             @override             public void onclick(view v) {                 intent = new intent(getactivity(), fullscreenimage.class);                 i.putextra("fspostiv", gifurl);                 getactivity().startactivity(i);                 getactivity().overridependingtransition(android.r.anim.fade_in, android.r.anim.fade_out););             }         }); 

everything ok here, in fullscreenimage.class loading not works.

fullscreenimage.class

public class fullscreenimage extends appcompatactivity{ private touchimageview imiv; @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.full_screen_image);     intent intent = getintent();     imiv=(touchimageview) findviewbyid(r.id.full_screen_iv);     glide.with(this).load(intent.getextras().getstring("fspostiv")).diskcachestrategy(diskcachestrategy.all).into(imiv); } @override public void onbackpressed() {     finish();     overridependingtransition(android.r.anim.fade_in, android.r.anim.fade_out); } } 

when have not image loading in rvfragment , use images in drawable folder, images in fullscreenimage.class shown without problem. how can solve problem. thank in advance.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -