scratchCardLayout
scratchCardLayout copied to clipboard
Scratch card reveal effect inspired by Google pay, PhonePe and Zomato scratch card reward system.
### The app is crashing when I use scratchCardLayout with Recyclerview. It is working fine when used independently in an activity or fragment. below is the crash log. ``` kotlin.KotlinNullPointerException...
it's being called zillions of time if you keep scrolling. i wanna do something on complete it's doing that thousands of times.
I got this error on Crashlytics. Fatal Exception: o.getDuration at dev.skymansandy.scratchcardlayout.ui.ScratchCard.onDraw(ScratchCard.java:128) 
KotlinNullPointerException happens in fun onDraw while fragment predraw views (mBitmap = null). The problem goes away if I remove android:transitionName="" from xml. Please check this case.
I load two images via Fresco or Glide. My layout contains first image with centerCrop ratio, but I can't set ratio to second image (scratch) and this images looks different.
Unable to scratch inside nestedscrollview.
As JCenter is down, this lib needs to be moved from jcenter to maven.
I this dependency in electric eel version