Giter Site home page Giter Site logo

dashboardview-1's Introduction

DashboardView

Android 自定义View 仪表盘

DashboardView

##HOW TO USE

###gradle

root build.gradle:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

moudle build.gradle:

compile 'com.github.SuperKung:DashboardView:1.2.1'

###xml

<com.anderson.dashboardview.view.DashboardView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/panView"
        android:text="当前速度"
        app:Unit="m/s"/>
more
  app:startNumber
  app:maxNumber
  app:backgroundColor
  app:progressColor
  app:startProgressColor
  app:endProgressColor
  app:progressStrokeWidth
  app:tikeStrArray
  app:tikeStrColor
  app:tikeStrSize
  app:startNumber
  app:maxNumber
  app:centerCircleColor

###java

setPercent(int percent);//核心方法,percent = 0~100
//以下方法都可有可无,如果在xml中设置了则不必重复设置,适用于需要动态改变状态的情况
setText(String text);
setTextSize(int size);
setTextColor(int mTextColor);
setProgressHeight(int dp);
setUnit(String unit);
setInterpolator(TimeInterpolator interpolator);//设置动画插值器,从而达到不同的动画效果
setStartColor(int startColor);
setEndColor(int endColor);//如果设置了起始颜色和结束颜色,进度条会变成渐变色
setStartNum(float startNum);
setMaxNum(float startNum);

该控件相关博客

dashboardview-1's People

Contributors

superkung avatar zhouzhiyong619 avatar

Watchers

layeka avatar  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.