A View which can accomplish funtion of scratching pad
可以实现刮奖功能的自定义View
-
Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } } -
Add the dependency
dependencies { compile 'com.github.Stars-One:GuaJiangViewDemo:v1.2' } -
use it in your xml
- set its listener of complete
| property | description | default |
|---|---|---|
| text | the showing text | null |
| textSize | the size of text | 16 |
| textColor | the color of text | black |
| PaintSize | the width of erasure effect | 10 |
| messageBackground | the background or the background color of layer of the message | null |
| isDrawText | chose show text or show picture | true |
| cover | the picture or color of cover layer | null |
| clearFlag | when clear greater than clearFlag,then clear cover layer | 60 percent |


