Giter Club home page Giter Club logo

abilitychart's Introduction

AbilityChart

一个能力值属性分布的控件 可以改变属性个数,内部层数,以及view的各种属性(text大小,各项属性值,属性个数,分割线颜色,线宽····) #效果图: image image #设置各个属性值的大小

AbilityChatView abilityChatView = (AbilityChatView) findViewById(R.id.ability1);
        List<Double> data = new ArrayList<>();
        data.add(80d);
        data.add(90d);
        data.add(70d);
        data.add(30d);
        data.add(60d);
        data.add(30d);
        data.add(60d);
        abilityChatView.setData(data);
        abilityChatView.invalidate();

#设置view的各个属性

<com.gao.jiefly.abilitychart.AbilityChatView
		    android:layout_width="0dp"
		    android:id="@+id/ability3"
		    android:layout_weight="1"
		    android:layout_height="match_parent"
		    custom:textColor="#000"
		    custom:lineColor="#75082d"
		    custom:textSize="3sp"
		    custom:coverColor="#ff0000"
		    custom:coverAlpha="100"
		    custom:polygonAlpha="23"
		    custom:lineWidth="0.2dp"
	    />

#在代码中设置view的各个属性

        abilityChatView.setCount(6);
        abilityChatView.setProertyLevel(4);
        abilityChatView.setPolygonColor(Color.DKGRAY);
        abilityChatView.setCoverColor(Color.RED);
        abilityChatView.setTextColor(Color.RED);
        abilityChatView.setPolygonStyle(Paint.Style.STROKE);
        abilityChatView.setCoverStyle(Paint.Style.STROKE);
        abilityChatView.setCoverAlpha(255);
        abilityChatView.setLineColor(Color.GREEN);
        abilityChatView.setLineWidth(4);
        abilityChatView.invalidate();

abilitychart's People

Contributors

jiefly avatar

Stargazers

 avatar

Watchers

 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.