android - Fresco Image Viewer doesn't show photo -
i'm using fresco image viewer on app showing post photos when clicked make full screen. working last week, didn't changed in code doesn't work.
here showfullscreen function
public void showfullscreenimage(final context activity, final string imageurl) { handler handler = new handler(activity.getmainlooper()); handler.post(new runnable() { public void run() { try { list<string> pictures = new arraylist<>(); pictures.add(imageurl); genericdraweehierarchybuilder hierarchybuilder = genericdraweehierarchybuilder.newinstance(mcontext.getresources()) .setfailureimage(r.drawable.error) .setprogressbarimage(new progressbardrawable()); new imageviewer.builder<>(activity, pictures).setcustomdraweehierarchybuilder(hierarchybuilder).setstartposition(0).show(); } catch (exception ex) { ex.printstacktrace(); } } }); }
it shows black screen, it's not freezing, can swipe dismiss view.
okay found solution, upgrade repos final update build.gradle fresco , frescoimageviwer it'll work.
Comments
Post a Comment