GithubHelp home page GithubHelp logo

spiderview's Introduction

SpiderView

Release

图片

Gradle

在Project的build.gradle中添加:

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

添加依赖:

implementation 'com.github.zhuazhu:SpiderView:1.0.1'

布局中的使用

<zhuazhu.spider.view.SpiderView
        android:id="@+id/spider"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:line_count="4"
        app:net_count="6"
        app:line_color="#6b6464"
        app:net_color="#6b6464"
        app:point_color="#f10707"
        app:area_color="#6435f10b"
        app:line_width="0.5dp"
        app:net_width="0.5dp"
        app:point_size="2dp"
        app:value="0.3,0.2,0.6,0.5,0.5,1,1,1"
        />

属性说明

属性 默认 说明
line_count 3 线的条数
net_count 4 网的张数
line_color Color.RED 线的颜色
net_color Color.BLUE 网的颜色
point_color Color.GREEN 点的颜色
area_color #57565865 覆盖区域的颜色
line_width 5px 线的宽度
net_width 5px 网的宽度
point_size 10px 点的大小
value 维度的值(数字在0到1之间),值的个数为line_count*2,以","号隔开

方法说明

1.setValue(double ...values)

设置维度的值

spiderview's People

Contributors

catchpig 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.