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:
repositories {
jcenter()
}
dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0'
}
If the above code didn't worked try using Method 2
repositories {
maven {
url 'https://dl.bintray.com/dynamitechetan/maven'
}
}
dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0@aar'
}
<dependency>
<groupId>com.dynamitechetan.fogviewlibrary</groupId>
<artifactId>FogViewLibrary</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
<com.dynamitechetan.fogviewlibrary.FogView
android:id="@+id/RubFog"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
The FogView have some custom attributes, to use them , you must add this line in your xml file in the first component:
<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:fog="https://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</RelativeLayout>
<com.dynamitechetan.fogviewlibrary.FogView
android:id="@+id/RubFog"
android:layout_width="match_parent"
android:layout_height="match_parent"
fog:fog_image="@drawable/my_fog_image"
/>
fog:fog_image="@drawable/fog"
or use this for a denser fog image
fog:fog_image="@drawable/fog_dense"
Default Stroke Width is 75
fog:stroke_width="100"
Copyright (c) 2016 Chetan Kaushik
Licensed under the Apache License, Version 2.0