项目介绍

dynamitechetan/FogView_Library 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,目前获得 621 个 Star、77 次 Fork。

仓库全名
dynamitechetan/FogView_Library
Star 数
621
Fork 数
77
未关闭 Issue
1

README 摘要

Fog View Android 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 If the above code didn't worked try using Method 2 Method 2 or Using Maven…

完整内容见 GitHub 原始 README 或本页 。

常见问题

FogView_Library 用什么语言开发?

主要使用 Java 编写,目前有 621 个 Star。

如何获取 FogView_Library 的源码?

可以直接克隆仓库:git clone https://github.com/dynamitechetan/FogView_Library.git,默认分支为 master;安装与运行步骤见仓库 README。

FogView_Library 最近还在维护吗?

仓库最近一次更新为 2016年8月9日,当前有 1 个未关闭 Issue;Star 数为 621,可作为社区活跃度的参考。

关于

FogView is a android library that can show fog on any layout and the fog removes when user rubs it.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
788
价值分
396
活跃状态
活跃

语言占比

Java

README

Fog View Android Library

Android Arsenal License API

Min SDK 8 (Android 2.2–2.2.3 Froyo)

Screnshots

Screenshot Screenshot

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

repositories {
        jcenter()
}

dependencies {
    compile 'com.dynamitechetan.fogviewlibrary:FogViewLibrary:1.0.0'
    
}

If the above code didn’t worked try using Method 2

Method 2

repositories {
	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 WIDTH

Default Stroke Width is 75

        fog:stroke_width="100"

License

Copyright © 2016 Chetan Kaushik

Licensed under the Apache License, Version 2.0

评论

暂无评论