scratchCardLayout icon indicating copy to clipboard operation
scratchCardLayout copied to clipboard

Scratch card reveal effect inspired by Google pay, PhonePe and Zomato scratch card reward system.

Results 9 scratchCardLayout issues
Sort by recently updated
recently updated
newest added

### 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) ![error](https://user-images.githubusercontent.com/37851461/126896734-22c5461e-af01-4eec-bb59-150cf59b720b.PNG)

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.