Package com.naver.ads.ui
Interface AspectRatioDecorator
-
- All Implemented Interfaces:
public interface AspectRatioDecoratorDecorator for applying aspect ratio to the View.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAspectRatioDecorator.ResizeModeResize modes for Views that use AspectRatioDecorator.
public interfaceAspectRatioDecorator.AspectRatioListenerListener to be notified about changes of the aspect ratios of this view.
-
Method Summary
Modifier and Type Method Description abstract UnitsetAspectRatio(Float aspectRatio)Sets the aspect ratio that this view should satisfy. abstract UnitsetAspectRatioListener(AspectRatioDecorator.AspectRatioListener aspectRatioListener)Sets the AspectRatioListener. abstract UnitsetResizeMode(AspectRatioDecorator.ResizeMode resizeMode)Sets the ResizeMode. -
-
Method Detail
-
setAspectRatio
abstract Unit setAspectRatio(Float aspectRatio)
Sets the aspect ratio that this view should satisfy.
- Parameters:
aspectRatio- the with to height ratio.
-
setAspectRatioListener
abstract Unit setAspectRatioListener(AspectRatioDecorator.AspectRatioListener aspectRatioListener)
Sets the AspectRatioListener.
- Parameters:
aspectRatioListener- the listener to be notified about aspect ratios changes, or null to clear a listener that was previously set.
-
setResizeMode
abstract Unit setResizeMode(AspectRatioDecorator.ResizeMode resizeMode)
Sets the ResizeMode.
- Parameters:
resizeMode- the ResizeMode.
-
-
-
-