public void initialize(Context context,boolean is24HourMode,boolean hasInnerCircle,boolean disappearsOut,int selectionDegrees,boolean isInnerCircle){
  if (mIsInitialized) {
    Log.e(TAG,"This RadialSelectorView may only be initialized once.");
    return;
  }
  Resources res=context.getResources();
  int accentColor=res.getColor(R.color.mdtp_accent_color);
  mPaint.setColor(accentColor);
  mPaint.setAntiAlias(true);
  mSelectionAlpha=SELECTED_ALPHA;
  mIs24HourMode=is24HourMode;
  if (is24HourMode) {
    mCircleRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_circle_radius_multiplier_24HourMode));
  }
 else {
    mCircleRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_circle_radius_multiplier));
    mAmPmCircleRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_ampm_circle_radius_multiplier));
  }
  mHasInnerCircle=hasInnerCircle;
  if (hasInnerCircle) {
    mInnerNumbersRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_numbers_radius_multiplier_inner));
    mOuterNumbersRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_numbers_radius_multiplier_outer));
  }
 else {
    mNumbersRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_numbers_radius_multiplier_normal));
  }
  mSelectionRadiusMultiplier=Float.parseFloat(res.getString(R.string.mdtp_selection_radius_multiplier));
  mAnimationRadiusMultiplier=1;
  mTransitionMidRadiusMultiplier=1f + (0.05f * (disappearsOut ? -1 : 1));
  mTransitionEndRadiusMultiplier=1f + (0.3f * (disappearsOut ? 1 : -1));
  mInvalidateUpdateListener=new InvalidateUpdateListener();
  setSelection(selectionDegrees,isInnerCircle,false);
  mIsInitialized=true;
}

public void initialize ( Context context , boolean is24HourMode , boolean hasInnerCircle , boolean disappearsOut , int selectionDegrees , boolean isInnerCircle ) { if ( mIsInitialized ) { Log . e ( TAG , "This RadialSelectorView may only be initialized once." ) ; return ; } Resources res = context . getResources ( ) ; int accentColor = res . getColor ( R . color . mdtp_accent_color ) ; mPaint . setColor ( accentColor ) ; mPaint . setAntiAlias ( true ) ; mSelectionAlpha = SELECTED_ALPHA ; mIs24HourMode = is24HourMode ; if ( is24HourMode ) { mCircleRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_circle_radius_multiplier_24HourMode ) ) ; } else { mCircleRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_circle_radius_multiplier ) ) ; mAmPmCircleRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_ampm_circle_radius_multiplier ) ) ; } mHasInnerCircle = hasInnerCircle ; if ( hasInnerCircle ) { mInnerNumbersRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_numbers_radius_multiplier_inner ) ) ; mOuterNumbersRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_numbers_radius_multiplier_outer ) ) ; } else { mNumbersRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_numbers_radius_multiplier_normal ) ) ; } mSelectionRadiusMultiplier = Float . parseFloat ( res . getString ( R . string . mdtp_selection_radius_multiplier ) ) ; mAnimationRadiusMultiplier = 1 ; mTransitionMidRadiusMultiplier = 1f + ( 0.05f * ( disappearsOut ? - 1 : 1 ) ) ; mTransitionEndRadiusMultiplier = 1f + ( 0.3f * ( disappearsOut ? 1 : - 1 ) ) ; mInvalidateUpdateListener = new InvalidateUpdateListener ( ) ; setSelection ( selectionDegrees , isInnerCircle , false ) ; mIsInitialized = true ; }
initialize this selector with the state of the picker .
