nativescript-photoviewer
nativescript-photoviewer copied to clipboard
Android Pie photo does not show up until you try to zoom.
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.
We are experiencing the same issue on Android Pie. The image does not load unless you zoom the gallery.
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.
Issue still present on API 28 (Pie) - unknown why.
any workaround to resolve the issue?
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.
I have same issue!
Hi, any news on this issue?
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.
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>