初窥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/

转载于:https://www.cnblogs.com/xubuhang/p/3984378.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值