A simple Android library for scratch card reveal kind of effect
A simple Android library for scratch card reveal kind of effect. Inspired by Zomato, PhonePe and Google pay reward system views.
Features:
- Scratch card effect to ANY view.
- Just wrap your existing complex Layout with ScratchCardLayout.
- based library. So All styling of CardView is available.
- Set scratch brush width.
- Enable/Disable scratching effect
- Set Drawable to be scratched (color / image).
- Set the percentage of scratch when you should be revealing full layout.
- Get callbacks when scratching starts, progresses (with a percentage) and when stops
License: Apache 2.0
GitHub: https://github.com/skymansandy/scratchCardLayout