https://github.com/dynamitechetan/fogview_library
FogView is a android library that can show fog on any layout and the fog removes when user rubs it.
https://github.com/dynamitechetan/fogview_library
android android-library custom-view fog rub scratch
Last synced: 18 days ago
JSON representation
FogView is a android library that can show fog on any layout and the fog removes when user rubs it.
- Host: GitHub
- URL: https://github.com/dynamitechetan/fogview_library
- Owner: dynamitechetan
- Created: 2016-07-01T13:20:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-09T05:44:20.000Z (over 8 years ago)
- Last Synced: 2025-04-12T23:42:46.933Z (18 days ago)
- Topics: android, android-library, custom-view, fog, rub, scratch
- Language: Java
- Size: 1.74 MB
- Stars: 631
- Watchers: 13
- Forks: 80
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fog View Android Library
[](http://android-arsenal.com/details/1/3833)
[](http://www.apache.org/licenses/LICENSE-2.0.html)
[](https://github.com/dynamitechetan/FogView_Library)
#### Min SDK 8 (Android 2.2–2.2.3 Froyo)
## Screnshots 
## How to use
If you want use this library, you can download project and import it into your workspace and add the project as a library in your android project settings.
Or you can use the gradle dependency, you have to add these lines in your build.gradle file:
# Method 1
```xml
repositories {
jcenter()
}dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0'
}
```
If the above code didn't worked try using Method 2
# Method 2
```xml
repositories {
maven {
url 'https://dl.bintray.com/dynamitechetan/maven'
}
}dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0@aar'
}
```
# or Using Maven:
```xmlcom.dynamitechetan.fogviewlibrary
FogViewLibrary
1.0.0
pom```
## BASIC USAGE
```xml
```The FogView have some custom attributes, to use them , you must add this line in your xml file in the first component:
```xml
```
## USING A CUSTOM FOG IMAGE
```xml
```
### Two fog images are provided with the library, to use them:
```xml
fog:fog_image="@drawable/fog"
```
or
use this for a denser fog image
```xml
fog:fog_image="@drawable/fog_dense"
```## USING A CUSTOM STROKE WIDTH
Default Stroke Width is 75
```xml
fog:stroke_width="100"
```## License
Copyright (c) 2016 Chetan KaushikLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)