GithubHelp home page GithubHelp logo

dashview's Introduction

DashView

##效果

效果图


        <!--圆弧的宽度-->
        <attr name="arc_width" format="dimension" />
        <attr name="arc_color" format="reference|color" />

        <!--小刻度-->
        <attr name="small_scale_width" format="dimension" />
        <attr name="small_scale_height" format="dimension" />
        <attr name="small_scale_color" format="reference|color" />

        <!--大刻度-->
        <attr name="big_scale_width" format="dimension" />
        <attr name="big_scale_height" format="dimension" />
        <attr name="big_scale_color" format="reference|color" />

        <!--刻度值的字体-->
        <attr name="scale_text_size" format="dimension"/>
        <attr name="scale_text_color" format="reference|color"/>

        <!--文字颜色-->
        <!--title颜色-->
        <attr name="dash_title_color" format="reference|color" />
        <attr name="dash_title_size" format="dimension" />
        <!--其他文字的颜色-->
        <attr name="dash_text_color" format="reference|color" />
        <attr name="dash_text_size" format="dimension" />

        <!--正常范围颜色-->
        <attr name="normal_arc_color" format="reference|color" />
        <!--危险颜色-->
        <attr name="danger_arc_color" format="reference|color" />
        <!--报警颜色-->
        <attr name="warning_arc_color" format="reference|color" />
        <!--指针颜色-->
        <attr name="pointer_color" format="reference|color"/>

        <!--内部padding值-->
        <attr name="dash_padding" format="dimension"/>
DashView dash_view = findViewById(R.id.dash_view);
dash_view.setDatas(0,1);
dash_view.setCurrentValue(0.6f);
dash_view.setTextInfo("出水瞬时流量","国标:1-60","09-09 12:33:20");
dash_view.startRender();

dashview's People

Contributors

mrshuhong avatar

Stargazers

 avatar biabiabia avatar

Watchers

James Cloos avatar  avatar

Forkers

rainplayer

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.