Skip to content

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

Notifications You must be signed in to change notification settings

GreendaMi/WifiState

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages