Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupKumarPanwar authored Mar 30, 2019
1 parent 6fb2372 commit 25ccdab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down Expand Up @@ -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 |
Expand Down

0 comments on commit 25ccdab

Please sign in to comment.