Пример #1
0
 /** Resets the rounding params on the specified rounded drawable, so that no rounding occurs. */
 static void resetRoundingParams(Rounded rounded) {
   rounded.setCircle(false);
   rounded.setRadius(0);
   rounded.setBorder(Color.TRANSPARENT, 0);
   rounded.setPadding(0);
 }
Пример #2
0
 /** Applies the given rounding params on the specified rounded drawable. */
 static void applyRoundingParams(Rounded rounded, RoundingParams roundingParams) {
   rounded.setCircle(roundingParams.getRoundAsCircle());
   rounded.setRadii(roundingParams.getCornersRadii());
   rounded.setBorder(roundingParams.getBorderColor(), roundingParams.getBorderWidth());
   rounded.setPadding(roundingParams.getPadding());
 }