private void prepareBorderRadius(){
  if (mBorderRadius != null) {
    float factor=getScaleFactor();
    if (mOverlappingBorderRadius == null) {
      mOverlappingBorderRadius=new SparseArray<>(5);
      mOverlappingBorderRadius.put(Spacing.ALL,0f);
    }
    if (!Float.isNaN(factor) && factor < 1) {
      mOverlappingBorderRadius.put(BORDER_TOP_LEFT_RADIUS,getBorderRadius(mBorderRadius,BORDER_TOP_LEFT_RADIUS) * factor);
      mOverlappingBorderRadius.put(BORDER_TOP_RIGHT_RADIUS,getBorderRadius(mBorderRadius,BORDER_TOP_RIGHT_RADIUS) * factor);
      mOverlappingBorderRadius.put(BORDER_BOTTOM_RIGHT_RADIUS,getBorderRadius(mBorderRadius,BORDER_BOTTOM_RIGHT_RADIUS) * factor);
      mOverlappingBorderRadius.put(BORDER_BOTTOM_LEFT_RADIUS,getBorderRadius(mBorderRadius,BORDER_BOTTOM_LEFT_RADIUS) * factor);
    }
 else {
      mOverlappingBorderRadius.put(BORDER_TOP_LEFT_RADIUS,getBorderRadius(mBorderRadius,BORDER_TOP_LEFT_RADIUS));
      mOverlappingBorderRadius.put(BORDER_TOP_RIGHT_RADIUS,getBorderRadius(mBorderRadius,BORDER_TOP_RIGHT_RADIUS));
      mOverlappingBorderRadius.put(BORDER_BOTTOM_RIGHT_RADIUS,getBorderRadius(mBorderRadius,BORDER_BOTTOM_RIGHT_RADIUS));
      mOverlappingBorderRadius.put(BORDER_BOTTOM_LEFT_RADIUS,getBorderRadius(mBorderRadius,BORDER_BOTTOM_LEFT_RADIUS));
    }
  }
}

private void prepareBorderRadius ( ) { if ( mBorderRadius != null ) { float factor = getScaleFactor ( ) ; if ( mOverlappingBorderRadius == null ) { mOverlappingBorderRadius = new SparseArray < > ( 5 ) ; mOverlappingBorderRadius . put ( Spacing . ALL , 0f ) ; } if ( ! Float . isNaN ( factor ) && factor < 1 ) { mOverlappingBorderRadius . put ( BORDER_TOP_LEFT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_TOP_LEFT_RADIUS ) * factor ) ; mOverlappingBorderRadius . put ( BORDER_TOP_RIGHT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_TOP_RIGHT_RADIUS ) * factor ) ; mOverlappingBorderRadius . put ( BORDER_BOTTOM_RIGHT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_BOTTOM_RIGHT_RADIUS ) * factor ) ; mOverlappingBorderRadius . put ( BORDER_BOTTOM_LEFT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_BOTTOM_LEFT_RADIUS ) * factor ) ; } else { mOverlappingBorderRadius . put ( BORDER_TOP_LEFT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_TOP_LEFT_RADIUS ) ) ; mOverlappingBorderRadius . put ( BORDER_TOP_RIGHT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_TOP_RIGHT_RADIUS ) ) ; mOverlappingBorderRadius . put ( BORDER_BOTTOM_RIGHT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_BOTTOM_RIGHT_RADIUS ) ) ; mOverlappingBorderRadius . put ( BORDER_BOTTOM_LEFT_RADIUS , getBorderRadius ( mBorderRadius , BORDER_BOTTOM_LEFT_RADIUS ) ) ; } } }
process overlapping curve according to https : / / www . w3 . org / tr / css3 - background / # corner - overlap .
