Giter Site home page Giter Site logo

scorebar's Introduction

ScoreBar

ScoreBarView & ScoreBarChart

ScoreBarView & ScoreBarChart

ScoreBarView:一个有动画,渐变颜色的分数条形图。

ScoreBarChart:ScoreBarView 组成的条形统计表。

Demo

Demo

Import

按需拷贝项目中的 ScoreBarView.javaScoreBarChart.jararrts.xml 即可。

Usage

ScoreBarView 可配置三个属性,分别为:

属性名 描述 单位 默认值
barHeight 进度条高度 dp 32dp
ViewHeight 控件高度 dp 与barHeight相同
barTextSize 进度文字大小 sp 16sdp
<com.example.neo.scorebardemo.view.ScoreBarView
        android:id="@+id/score_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:barHeight="32dp"
        app:barTextSize="16sp"
        app:viewHeight="32dp"
        />

ScoreBarChart 可配置一个属性:

属性名 描述 单位 默认值
lineSpace 行距 dp 16dp
<com.example.neo.scorebardemo.view.ScoreBarChart
        android:id="@+id/score_bar_chart"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:lineSpace="16dp"
        />

scorebar's People

Contributors

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