private void parseAttributes(TypedArray a){
  barWidth=(int)a.getDimension(R.styleable.ProgressWheel_barWidth,barWidth);
  rimWidth=(int)a.getDimension(R.styleable.ProgressWheel_rimWidth,rimWidth);
  spinSpeed=(int)a.getDimension(R.styleable.ProgressWheel_spinSpeed,spinSpeed);
  delayMillis=a.getInteger(R.styleable.ProgressWheel_delayMillis,delayMillis);
  if (delayMillis < 0) {
    delayMillis=0;
  }
  barColor=a.getColor(R.styleable.ProgressWheel_barColor,barColor);
  barLength=(int)a.getDimension(R.styleable.ProgressWheel_barLength,barLength);
  textSize=(int)a.getDimension(R.styleable.ProgressWheel_textSize,textSize);
  textColor=(int)a.getColor(R.styleable.ProgressWheel_textColor,textColor);
  if (a.hasValue(R.styleable.ProgressWheel_text)) {
    setText(a.getString(R.styleable.ProgressWheel_text));
  }
  rimColor=(int)a.getColor(R.styleable.ProgressWheel_rimColor,rimColor);
  circleColor=(int)a.getColor(R.styleable.ProgressWheel_circleColor,circleColor);
  contourColor=a.getColor(R.styleable.ProgressWheel_contourColor,contourColor);
  contourSize=a.getDimension(R.styleable.ProgressWheel_contourSize,contourSize);
  a.recycle();
}

private void parseAttributes ( TypedArray a ) { barWidth = ( int ) a . getDimension ( R . styleable . ProgressWheel_barWidth , barWidth ) ; rimWidth = ( int ) a . getDimension ( R . styleable . ProgressWheel_rimWidth , rimWidth ) ; spinSpeed = ( int ) a . getDimension ( R . styleable . ProgressWheel_spinSpeed , spinSpeed ) ; delayMillis = a . getInteger ( R . styleable . ProgressWheel_delayMillis , delayMillis ) ; if ( delayMillis < 0 ) { delayMillis = 0 ; } barColor = a . getColor ( R . styleable . ProgressWheel_barColor , barColor ) ; barLength = ( int ) a . getDimension ( R . styleable . ProgressWheel_barLength , barLength ) ; textSize = ( int ) a . getDimension ( R . styleable . ProgressWheel_textSize , textSize ) ; textColor = ( int ) a . getColor ( R . styleable . ProgressWheel_textColor , textColor ) ; if ( a . hasValue ( R . styleable . ProgressWheel_text ) ) { setText ( a . getString ( R . styleable . ProgressWheel_text ) ) ; } rimColor = ( int ) a . getColor ( R . styleable . ProgressWheel_rimColor , rimColor ) ; circleColor = ( int ) a . getColor ( R . styleable . ProgressWheel_circleColor , circleColor ) ; contourColor = a . getColor ( R . styleable . ProgressWheel_contourColor , contourColor ) ; contourSize = a . getDimension ( R . styleable . ProgressWheel_contourSize , contourSize ) ; a . recycle ( ) ; }
parse the attributes passed to the view from the xml
