GIF Support
Closed this issue · 8 comments
hardikbhalodi commented
is it possible to add GIF image as foreground of QR Code?
alexzhirkevich commented
Gif animation is not supported. You can set 1 frame from gif as a foreground.
hardikbhalodi commented
is it possible to implement with use of gif drawable lib here https://github.com/koral--/android-gif-drawable ?
alexzhirkevich commented
hardikbhalodi commented
alexzhirkevich commented
Tbh, your example looks more like 2nd variant.
You can achieve it like this:
LayerDrawable(
arrayOf(
QrCodeDrawable(context, data,options),
GifDrawable(resources, R.drawable.gif).apply {
alpha = 125
}
)
)
hardikbhalodi commented
Okay thanks but not sure how i can export the GIF qr code now because its layer drawable?
Any chance to implement GIFDrawableSource?
hardikbhalodi commented
alexzhirkevich commented
Please create new issues for different questions