File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ Demo Screen
1111
1212### Useful Methods
1313
14- * ``` isRevealed() ``` - tells whether the text/image has been revealed.
15- * ``` reveal() ``` - reveals the image/text if not revealed yet.
16- * ``` setRevealListener(IRevealListener) ``` - a callback listener interface which gets called back when user reveals the text/image
14+ * ``` isRevealed() ``` - tells whether the view has been revealed.
15+ * ``` reveal() ``` - reveals the view if not revealed yet.
16+ * ``` mask() ``` - masks the view again and removes the existing scratches.
17+ * ``` setRevealListener(IRevealListener) ``` - a callback listener interface which gets called back when user reveals the view
1718through onReveal() method.
1819
1920
@@ -94,7 +95,7 @@ Attributes
9495--------
9596| Attribute | Description | Values |
9697| ---------------------------- | ----------------------------- | ----------------------------- |
97- | ` app:overlay_image ` | The pattern or image to cover the image/text . | @drawable /scratch_card |
98+ | ` app:overlay_image ` | The pattern or image to cover the view . | @drawable /scratch_card |
9899| ` app:tile_mode ` | https://developer.android.com/reference/android/graphics/Shader.TileMode | CLAMP / MIRROR / REPEAT|
99100| ` app:overlay_width ` | Width of the overlay pattern | 300dp |
100101| ` app:overlay_height ` | Height of the overlay pattern | 300dp |
You can’t perform that action at this time.
0 commit comments