From 25ccdabd3f2926b1fb2f73803ceda8c1a45a01f7 Mon Sep 17 00:00:00 2001 From: Anup Kumar Panwar <1anuppanwar@gmail.com> Date: Sat, 30 Mar 2019 22:13:39 +0530 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ce14f62..26d6730 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,10 @@ Demo Screen ### Useful Methods -* ```isRevealed()``` - tells whether the text/image has been revealed. -* ```reveal()``` - reveals the image/text if not revealed yet. -* ```setRevealListener(IRevealListener)``` - a callback listener interface which gets called back when user reveals the text/image +* ```isRevealed()``` - tells whether the view has been revealed. +* ```reveal()``` - reveals the view if not revealed yet. +* ```mask()``` - masks the view again and removes the existing scratches. +* ```setRevealListener(IRevealListener)``` - a callback listener interface which gets called back when user reveals the view through onReveal() method. @@ -94,7 +95,7 @@ Attributes -------- | Attribute | Description | Values | | ---------------------------- | ----------------------------- | ----------------------------- | -| `app:overlay_image` | The pattern or image to cover the image/text. | @drawable/scratch_card | +| `app:overlay_image` | The pattern or image to cover the view. | @drawable/scratch_card | | `app:tile_mode` | https://developer.android.com/reference/android/graphics/Shader.TileMode | CLAMP / MIRROR / REPEAT| | `app:overlay_width` | Width of the overlay pattern | 300dp | | `app:overlay_height` | Height of the overlay pattern | 300dp |