资源简介

构建动态柱形图,官方的API并没有提供可以借鉴的动态更新饼图的方法,考虑到数据都是活动的,不可能总是用静态数据,具体是通过定时器+Handler实现定时任务,通过Handler更新主线程UI,在更新之前要把之前的数据清除掉,否则那些数据都会被加载,最后重新绘制饼图,构建动态饼图的步骤主要分为以下四步,还需要在项目中引入AChartEngine依赖jar包,在Manifest中添加

资源截图

代码片段和文件信息

/** Automatically generated file. DO NOT MODIFY */
package com.qiuzhping.achart;

public final class BuildConfig {
    public final static boolean DEBUG = true;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-11-08 17:21  AChartEngineNew\
     文件         475  2014-11-08 17:21  AChartEngineNew\.classpath
     文件         851  2014-11-02 01:30  AChartEngineNew\.project
     文件        1163  2014-01-16 18:27  AChartEngineNew\AndroidManifest.xml
     目录           0  2014-01-16 11:31  AChartEngineNew\assets\
     目录           0  2014-11-08 19:15  AChartEngineNew\bin\
     文件      345680  2014-01-16 21:12  AChartEngineNew\bin\AChartEngine.apk
     文件      345389  2014-11-08 19:15  AChartEngineNew\bin\AChartEngineNew.apk
     文件        1163  2014-11-08 17:21  AChartEngineNew\bin\AndroidManifest.xml
     目录           0  2014-11-08 17:21  AChartEngineNew\bin\classes\
     目录           0  2014-11-08 17:21  AChartEngineNew\bin\classes\com\
     目录           0  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\
     目录           0  2014-11-08 18:47  AChartEngineNew\bin\classes\com\qiuzhping\achart\
     文件         852  2014-11-08 19:36  AChartEngineNew\bin\classes\com\qiuzhping\achart\BarChartBuilder$1.class
     文件        1053  2014-11-08 19:36  AChartEngineNew\bin\classes\com\qiuzhping\achart\BarChartBuilder$2.class
     文件        6959  2014-11-08 19:36  AChartEngineNew\bin\classes\com\qiuzhping\achart\BarChartBuilder.class
     文件         349  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\BuildConfig.class
     文件        2769  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\CopyOfPieChartBuilder$1.class
     文件        5100  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\CopyOfPieChartBuilder.class
     文件        1336  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\MainActivity$BarBtn.class
     文件        1336  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\MainActivity$PieBtn.class
     文件        1279  2014-11-08 17:21  AChartEngineNew\bin\classes\com\qiuzhping\achart\MainActivity.class
     文件         852  2014-11-08 18:49  AChartEngineNew\bin\classes\com\qiuzhping\achart\PieChartBuilder$1.class
     文件        1048  2014-11-08 18:49  AChartEngineNew\bin\classes\com\qiuzhping\achart\PieChartBuilder$2.class
     文件        5509  2014-11-08 18:49  AChartEngineNew\bin\classes\com\qiuzhping\achart\PieChartBuilder.class
     文件         346  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$attr.class
     文件         467  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$dimen.class
     文件         413  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$drawable.class
     文件         593  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$id.class
     文件         469  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$layout.class
     文件         394  2014-11-08 18:56  AChartEngineNew\bin\classes\com\qiuzhping\achart\R$menu.class
............此处省略72个文件信息

评论

共有 条评论