GithubHelp home page GithubHelp logo

irmobydick / colorstatisticsviewproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wotomas/colorstatisticsviewproject

0.0 1.0 0.0 974 KB

Custom Color Statistics View

Java 91.43% Shell 8.57%

colorstatisticsviewproject's Introduction

ColorStatisticsViewProject

API Download

About

Color Statistics for Android based on a Material Up showcase designed by Someone

Demo

Adding counters to statistics values

Original showcase image from Someone

Implement

dependencies {
  compile 'info.kimjihyok:color-statistics-view:0.1.0'
}
<info.kimjihyok.coloverstatisticsview.ColorStatisticsView
    android:id="@+id/colorStatsView"
    android:layout_width="match_parent"
    android:layout_height="200dp">
</info.kimjihyok.coloverstatisticsview.ColorStatisticsView>
colorStatsView = (ColorStatisticsView) findViewById(R.id.colorStatsView);
colorStatsView.setBackgroundColor(ContextCompat.getColor(this, R.color.colorPrimary));
colorStatsView.setTitleText("Diary Topics");
colorStatsView.setFontColor(ContextCompat.getColor(this, R.color.white));
colorStatsView.setFontSize(22);
colorStatsView.setStatisticsItems(getDummyData());

// to update values
colorStatsView/.setStatValue(position, value);

Statistic Item

private List<StatisticsData> getTestData() {
  List<StatisticsData> resultData = new ArrayList<>();
    
  StatisticsData dataOne = new StatisticsData();
  dataOne.setItemName("Reading");
  dataOne.setCircleColor(ContextCompat.getColor(this, R.color.readingColor));
  dataOne.setStatisticsCount(4);    
  ...

  resultData.add(dataOne);
  ...
    
  return resultData;
}

Notes

  • Please help me update this link. I saw it on Material Up, but lost the link and can't find him!

colorstatisticsviewproject's People

Contributors

dittopia-ai avatar

Watchers

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