nativescript-photoviewer icon indicating copy to clipboard operation
nativescript-photoviewer copied to clipboard

Android Pie photo does not show up until you try to zoom.

Open FranciZ opened this issue 6 years ago • 9 comments

With Android Pie this plugin is effectively broken. When opening a gallery the photo is invisible until you try some zooming and panning at which point it shows up.

FranciZ avatar Aug 29 '18 18:08 FranciZ

We are experiencing the same issue on Android Pie. The image does not load unless you zoom the gallery.

sbacon94 avatar Mar 04 '19 15:03 sbacon94

I've been doing some refactoring on the plugin lately, and didn't notice any issues. Maybe the new version will fix things. I will do some more testing and let you know.

manijak avatar Mar 08 '19 08:03 manijak

Issue still present on API 28 (Pie) - unknown why.

manijak avatar Mar 25 '19 18:03 manijak

any workaround to resolve the issue?

KarthikMalaimegam avatar Aug 14 '19 11:08 KarthikMalaimegam

Afraid not, library is not working well on 28 & 29 it seems. Think I'll have to change to a different gradle library if I find one...

I could provide you a tip tho... What I did in my android app is to use my nativescript-carousel plugin together with the nativescript-image-zoom plugin. Placed them in a modal-view and created a more richer gallery that works similar to the iOS here, almost identical.

manijak avatar Aug 14 '19 17:08 manijak

I have same issue!

oncul avatar Feb 15 '20 14:02 oncul

Hi, any news on this issue?

rrr3da avatar Oct 29 '20 13:10 rrr3da

Hi, nothing new on this issue. I still stand by my last comment and the tip offered there. I simply do not have the time right now to search for a new gradle library and make it work with this plugin. If anyone is up for it, go ahead, I'll make sure to merge PRs and push out a release.

But for now, the combination of using the carousel plugin and image-zoom works really well and gives you more control over the gallery.

manijak avatar Oct 29 '20 18:10 manijak

Thank you @manijak , in the end I managed to do the same as you suggested:

<GridLayout height="100%" width="100%" rows="*" columns="*">
  <Carousel row="0" col="0" height="100%" width="100%" indicatorColor="#C54257" [selectedPage]="startIndex"
      finite="true" bounce="false" showIndicator="true" verticalAlignment="top" android:indicatorAnimation="swap" color="yellow">
    <CarouselItem *ngFor="let media of gallery" backgroundColor="black" verticalAlignment="middle">
      <GridLayout>
        <ImageZoom [src]="media" maxZoom="5" minZoom="1"></ImageZoom>
      </GridLayout>
    </CarouselItem>
  </Carousel>
</GridLayout>

rrr3da avatar Oct 29 '20 18:10 rrr3da