initAttrs(attrs);
initPaint();
}
private void initAttrs(AttributeSet attrs) {
if (attrs != null) {
<BUG>TypedArray ta = mContext.obtainStyledAttributes(attrs, R.styleable.AbsLeafChart);
startMarginX = (int) ta.getDimension(R.styleable.AbsLeafChart_startMarginX, 0);</BUG>
startMarginY = (int) ta.getDimension(R.styleable.AbsLeafChart_startMarginY, 0);
coordinateMode = ta.getInteger(R.styleable.AbsLeafChart_coordinateMode, Mode.INTERSECT);
ta.recycle();

initAttrs(attrs);
initPaint();
}
private void initAttrs(AttributeSet attrs) {
if (attrs != null) {
TypedArray ta = mContext.obtainStyledAttributes(attrs, R.styleable.AbsLeafChart);
topPadding = ta.getDimension(R.styleable.AbsLeafChart_topPadding, LeafUtil.dp2px(mContext, 10));
leftPadding = ta.getDimension(R.styleable.AbsLeafChart_leftPadding, LeafUtil.dp2px(mContext, 20));
rightPadding = ta.getDimension(R.styleable.AbsLeafChart_rightPadding, LeafUtil.dp2px(mContext, 10));
bottomPadding = ta.getDimension(R.styleable.AbsLeafChart_bottomPadding, LeafUtil.dp2px(mContext, 20));
startMarginX = (int) ta.getDimension(R.styleable.AbsLeafChart_startMarginX, 0);
startMarginY = (int) ta.getDimension(R.styleable.AbsLeafChart_startMarginY, 0);
coordinateMode = ta.getInteger(R.styleable.AbsLeafChart_coordinateMode, Mode.INTERSECT);
ta.recycle();
