Skip to content
Quick concept for connecting Wi-Fi and error status animation。
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
build.gradle
preview[3].gif
proguard-rules.pro
wifi2.gif
wifistate.iml

README.md

WifiState

Quick concept for connecting Wi-Fi and error status animation。

       tu.gif

       用于显示Wifi状态的视图,分为连接中,连接成功,和连接失败。可以设定视图宽度(高度自动计算),前景色和背景色。 效果设计来自material

       tu.gif

引入依赖:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  
 dependencies {
	        compile 'com.github.GreendaMi:WifiState:1,0'
	}

xml中使用

    <top.greendami.wifistate.WifiState
        android:id="@+id/wifiState"
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:background="#00000000"
        />

java代码

mWifiState =(WifiState) findViewById(R.id.wifiState);
//设置状态
mWifiState.setSTATE(WifiState.STATE.OK);
mWifiState.setSTATE(WifiState.STATE.LOADING);
mWifiState.setSTATE(WifiState.STATE.ERROR);
You can’t perform that action at this time.