Package com.naver.ads.ui
Class ViewDecorator
-
- All Implemented Interfaces:
public abstract class ViewDecoratorBase interface for a View that can be decorated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceViewDecorator.SuperOnMeasureDispatcherThe dispatcher that calls the
onMeasuremethod of the given view.public interfaceViewDecorator.SuperDrawDispatcherThe dispatcher that calls the
drawmethod of the given view.public interfaceViewDecorator.SuperDispatchDrawDispatcherThe dispatcher that calls the
dispatchDrawmethod of the given view.
-
Constructor Summary
Constructors Constructor Description ViewDecorator(View view)
-
Method Summary
Modifier and Type Method Description final ViewgetView()the view to be decorated. Unitdraw(Canvas canvas)Called when the android.view.View.draw method is called on the given view. UnitdispatchDraw(Canvas canvas)Called when the android.view.View.dispatchDraw method is called on the given view. UnitonMeasure(Integer widthMeasureSpec, Integer heightMeasureSpec)Called when the android.view.View.onMeasure method is called on the given view. UnitonSizeChanged(Integer w, Integer h, Integer oldw, Integer oldh)Called when the android.view.View.onSizeChanged method is called on the given view. -
-
Constructor Detail
-
ViewDecorator
ViewDecorator(View view)
-
-
Method Detail
-
draw
Unit draw(Canvas canvas)
Called when the android.view.View.draw method is called on the given view.
- Parameters:
canvas- the canvas to draw into
-
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
-
onMeasure
Unit onMeasure(Integer widthMeasureSpec, Integer heightMeasureSpec)
Called when the android.view.View.onMeasure method is called on the given view.
- Parameters:
widthMeasureSpec- horizontal space requirements as imposed by the parent.heightMeasureSpec- vertical space requirements as imposed by the parent.
-
onSizeChanged
Unit onSizeChanged(Integer w, Integer h, Integer oldw, Integer oldh)
Called when the android.view.View.onSizeChanged method is called on the given view.
-
-
-
-