初窥AndroidPlot(一)

AndroidPlot统计数据以图表的库

官网:http://androidplot.com/

jar库所在位置:http://androidplot.com/

官方Demo:https://bitbucket.org/androidplot/androidplot/src     官方的例子没有导入jar,所以运行不出来。在项目中导入jar库方法如下:

我现在把已经添加好jar的例子给大家看:http://download.csdn.net/detail/xubuhang/7953129或者http://code.taobao.org/p/firstsvn/src/trunk/Demo/

运行时总会出现error: No resource identifier found for attribute 'domainLabel' in package ',没有资源id这种非常奇怪的问题!你只需要把res/layout/simple_xy_plot_example.xml的 

xmlns:ap="http://schemas.android.com/apk/res-auto"


ap:plotLabel="A Simple XY Plot"
ap:rangeLabel="range"
ap:domainLabel="domain"
ap:plotLabelTextSize="@dimen/title_font_size"
ap:rangeLabelTextSize="@dimen/range_label_font_size"
ap:domainLabelTextSize="@dimen/domain_label_font_size"
ap:graphMarginTop="20dp"
ap:graphMarginBottom="25dp"
ap:graphMarginLeft="15dp"
ap:graphMarginRight="10dp"

全部去掉,拷贝其他的布局文件就行了!

(如果出现启动android project时报resources.ap_ does not exist+http://jingyan.baidu.com/article/fd8044fa834e905031137ac6.html用此方法解决!)

 官网的文章:         http://androidplot.com/docs/quickstart/

                          作者:xubuhang                出处:http://www.cnblogs.com/xubuhang/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 

 
【推广】 免费学中医,健康全家人
原文地址:https://www.cnblogs.com/xubuhang/p/3984378.html