Package com.naver.ads.ui
Class RoundCornerViewBorderDecorator
-
- All Implemented Interfaces:
public final class RoundCornerViewBorderDecorator extends ViewDecorator
Decorator for applying rounded corner borders to the given view.
-
-
Constructor Summary
Constructors Constructor Description RoundCornerViewBorderDecorator(View view, Float borderWidth, Integer borderColor)Creates a RoundCornerViewBorderDecorator instance RoundCornerViewBorderDecorator(View view, Float borderWidth)Creates a RoundCornerViewBorderDecorator instance
-
Method Summary
Modifier and Type Method Description final UnitsetBorderColor(Integer color)final UnitsetBorderWidth(Float width)final UnitupdateBorderPath(Path path)UnitdispatchDraw(Canvas canvas)Called when the android.view.View.dispatchDraw method is called on the given view. -
-
Constructor Detail
-
RoundCornerViewBorderDecorator
RoundCornerViewBorderDecorator(View view, Float borderWidth, Integer borderColor)
Creates a RoundCornerViewBorderDecorator instance- Parameters:
view- the view which rounded corner border line will be applied.
-
RoundCornerViewBorderDecorator
RoundCornerViewBorderDecorator(View view, Float borderWidth)
Creates a RoundCornerViewBorderDecorator instance- Parameters:
view- the view which rounded corner border line will be applied.
-
-
Method Detail
-
setBorderColor
final Unit setBorderColor(Integer color)
-
setBorderWidth
final Unit setBorderWidth(Float width)
-
updateBorderPath
final Unit updateBorderPath(Path path)
-
dispatchDraw
Unit dispatchDraw(Canvas canvas)
Called when the android.view.View.dispatchDraw method is called on the given view.
- Parameters:
canvas- the canvas to draw into
-
-
-
-