https://github.com/stars-one/guajiangviewdemo
A View which can accomplish funtion of scratching pad 可以实现刮奖功能的自定义View
https://github.com/stars-one/guajiangviewdemo
Last synced: 8 months ago
JSON representation
A View which can accomplish funtion of scratching pad 可以实现刮奖功能的自定义View
- Host: GitHub
- URL: https://github.com/stars-one/guajiangviewdemo
- Owner: stars-one
- Created: 2018-08-22T06:08:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T07:52:26.000Z (about 7 years ago)
- Last Synced: 2024-12-27T04:26:14.815Z (10 months ago)
- Language: Java
- Homepage:
- Size: 387 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GuaJiangView
A View which can accomplish funtion of scratching pad
可以实现刮奖功能的自定义View
[中文文档](https://www.cnblogs.com/kexing/p/9517867.html)
## Picture
## Useage
1. **Add it in your root build.gradle at the end of repositories:**allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
2. **Add the dependency**dependencies {
compile 'com.github.Stars-One:GuaJiangViewDemo:v1.2'
}
3. **use it in your xml**
4. **set its listener of complete**

## Other
| 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|