@SuppressWarnings("deprecation") protected void processStyledAttributes(@NonNull TypedArray a){
  float targetAspectRatioX=Math.abs(a.getFloat(R.styleable.ucrop_UCropView_ucrop_aspect_ratio_x,DEFAULT_ASPECT_RATIO));
  float targetAspectRatioY=Math.abs(a.getFloat(R.styleable.ucrop_UCropView_ucrop_aspect_ratio_y,DEFAULT_ASPECT_RATIO));
  if (targetAspectRatioX == SOURCE_IMAGE_ASPECT_RATIO || targetAspectRatioY == SOURCE_IMAGE_ASPECT_RATIO) {
    mTargetAspectRatio=SOURCE_IMAGE_ASPECT_RATIO;
  }
 else {
    mTargetAspectRatio=targetAspectRatioX / targetAspectRatioY;
  }
}

@ SuppressWarnings ( "deprecation" ) protected void processStyledAttributes ( @ NonNull TypedArray a ) { float targetAspectRatioX = Math . abs ( a . getFloat ( R . styleable . ucrop_UCropView_ucrop_aspect_ratio_x , DEFAULT_ASPECT_RATIO ) ) ; float targetAspectRatioY = Math . abs ( a . getFloat ( R . styleable . ucrop_UCropView_ucrop_aspect_ratio_y , DEFAULT_ASPECT_RATIO ) ) ; if ( targetAspectRatioX == SOURCE_IMAGE_ASPECT_RATIO || targetAspectRatioY == SOURCE_IMAGE_ASPECT_RATIO ) { mTargetAspectRatio = SOURCE_IMAGE_ASPECT_RATIO ; } else { mTargetAspectRatio = targetAspectRatioX / targetAspectRatioY ; } }
this method extracts all needed values from the styled attributes . those are used to configure the view .
