Closed hardikbhalodi closed 1 year ago
Gif animation is not supported. You can set 1 frame from gif as a foreground.
is it possible to implement with use of gif drawable lib here https://github.com/koral--/android-gif-drawable ?
It is technically possible, but what exactly means "foreground of the QR code"?
1st or 2nd? or even something else?
Yes the 1st is correct. here is one more example of same, how to achieve that?
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
}
)
)
Okay thanks but not sure how i can export the GIF qr code now because its layer drawable? Any chance to implement GIFDrawableSource?
How to customise eyes like this, i tried and able to customise with same shape but all the sides are same! how to differentiate left top, right top and left bottom eye side?
Please create new issues for different questions
is it possible to add GIF image as foreground of QR Code?