public interface IInAppMessageImageView
View
implementations
that hold in-app message images, defining the required radius and cropping behavior for in-app
messages images.Modifier and Type | Method and Description |
---|---|
void |
setAspectRatio(float aspectRatio) |
void |
setCornersRadiiPx(float topLeft,
float topRight,
float bottomLeft,
float bottomRight)
Instruct the view to use the given radii for its corners.
|
void |
setCornersRadiusPx(float cornersRadius)
Instruct the view to use the given radius for its corners.
|
void |
setInAppMessageImageCropType(CropType cropType)
Instruct the view to use
ImageView.ScaleType.CENTER_CROP or equivalent. |
void |
setToHalfParentHeight(boolean setToHalfHeight) |
void setCornersRadiiPx(float topLeft, float topRight, float bottomLeft, float bottomRight)
topLeft
- top-left corner radius in pxtopRight
- top-right corner radius in pxbottomLeft
- bottom-left corner radius in pxbottomRight
- bottom-right corner radius in pxvoid setCornersRadiusPx(float cornersRadius)
cornersRadius
- radius for all corners in pxvoid setInAppMessageImageCropType(CropType cropType)
ImageView.ScaleType.CENTER_CROP
or equivalent.void setAspectRatio(float aspectRatio)
void setToHalfParentHeight(boolean setToHalfHeight)