在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dynamitechetan/FogView_Library开源软件地址(OpenSource Url):https://github.com/dynamitechetan/FogView_Library开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Fog View Android LibraryMin SDK 8 (Android 2.2–2.2.3 Froyo)ScrenshotsHow to useIf 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 1repositories {
jcenter()
}
dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0'
} If the above code didn't worked try using Method 2 Method 2repositories {
maven {
url 'https://dl.bintray.com/dynamitechetan/maven'
}
}
dependencies {
compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0@aar'
} or Using Maven:<dependency>
<groupId>com.dynamitechetan.fogviewlibrary</groupId>
<artifactId>FogViewLibrary</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency> BASIC USAGE <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="http://schemas.android.com/apk/res/android"
xmlns:fog="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</RelativeLayout> USING A CUSTOM FOG IMAGE <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"
/> Two fog images are provided with the library, to use them: fog:fog_image="@drawable/fog" or use this for a denser fog image fog:fog_image="@drawable/fog_dense" USING A CUSTOM STROKE WIDTHDefault Stroke Width is 75 fog:stroke_width="100" LicenseCopyright (c) 2016 Chetan Kaushik Licensed under the Apache License, Version 2.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论