源码简介
本例子是一个关于智能农业的安卓例子源码,仅实现了布局部分。
源码运行截图

- private void drawFrame(Canvas canvas){
- calculateLeft();
- //绘制横线
- for(int i=0;i<=xLineCount;i++){
- float startY=i*xInterval+xInterval;
- canvas.drawLine(left+5, startY,getWidth(),startY,paintLine);
- textPaint.setTextAlign(Align.RIGHT);
- canvas.drawText(Math.round(xMaxValue/xLineCount*(xLineCount-i)-0.5)+"",left,startY+bottom/4, textPaint);
- }
- for(int j=0;j
源码链接:http://down.51cto.com/data/1984800