Giphy / giphy-android-sdk

Home of the GIPHY SDK Android example app, along with Android SDK documentation, issue tracking, & release notes.
https://developers.giphy.com/
Mozilla Public License 2.0
94 stars 37 forks source link

I noticed that the gif is very laggy DialogFragment #110

Closed mihirmodiofficial closed 3 years ago

mihirmodiofficial commented 3 years ago

in some device the gif in dialogFragment is laggy

ALexanderLonsky commented 3 years ago

@mihirmodiofficial could you please provide more details like what device and Android version is on it?

Also please refer to GPHSettings There is RenditionType that you can try to play with, for example:

RenditionType.fixedHeightSmall
RenditionType.fixedWidthSmall
RenditionType.fixedWidthDownsampled
mihirmodiofficial commented 3 years ago

its on Samsung Galaxy Note 10 its taking time to select Gif

ALexanderLonsky commented 3 years ago

what RenditionType do you use?

mihirmodiofficial commented 3 years ago
        settings.renditionType = RenditionType.fixedWidth
        settings.confirmationRenditionType = RenditionType.fixedHeight
ALexanderLonsky commented 3 years ago

hm, it's weird. I don't have this device but I've tried its emulator and it works as expected. Could you please try to use one of these renditions:

RenditionType.fixedHeightSmall
RenditionType.fixedWidthSmall
RenditionType.fixedWidthDownsampled

and see if that has any effect.