, defStyle, 0); scaleTextSize = typedArray.getDimension(R.styleable.LineGraph_scale_text_size, 20 ().getColor(R.color.c8)); tipTextSize = typedArray.getDimension(R.styleable.LineGraph_tip_text_size (R.color.c12)); curveStrokeWidth = typedArray.getDimension(R.styleable.LineGraph_curve_stroke_width , 4); curveColor = typedArray.getColor(R.styleable.LineGraph_curve_color, getResources().getColor (R.color.c8)); circleRadius = typedArray.getDimensionPixelSize(R.styleable.LineGraph_circle_radius
makeObjectsPerformSelector:@selector(removeFromSuperlayer)]; 带弹性的曲线图 曲线图弹性动画.gif 整个效果的实现过程是这样的: 触发UIView的 drawRect 方法; [_lineGraph
labels = as.character(digit.group[digit.idx])) V <-shortnames(digit.ng_data) G <- completegraph(V) LG <- linegraph