Git Product home page Git Product logo

wifistate's Introduction

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

wifistate's People

Contributors

greendami avatar

Stargazers

 avatar  avatar ench_wu avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.