-
public final class RoundedTransformationBuilder
-
-
Constructor Summary
Constructors Constructor Description RoundedTransformationBuilder()
-
Method Summary
Modifier and Type Method Description RoundedTransformationBuilderscaleType(ImageView.ScaleType scaleType)RoundedTransformationBuildercornerRadius(float radius)Set corner radius for all corners in px. RoundedTransformationBuildercornerRadius(int corner, float radius)Set corner radius for a specific corner in px. RoundedTransformationBuildercornerRadiusDp(float radius)Set corner radius for all corners in density independent pixels. RoundedTransformationBuildercornerRadiusDp(int corner, float radius)Set corner radius for a specific corner in density independent pixels. RoundedTransformationBuilderborderWidth(float width)Set the border width in pixels. RoundedTransformationBuilderborderWidthDp(float width)Set the border width in density independent pixels. RoundedTransformationBuilderborderColor(int color)Set the border color. RoundedTransformationBuilderborderColor(ColorStateList colors)Set the border color as a ColorStateList. RoundedTransformationBuilderoval(boolean oval)Sets whether the image should be oval or not. -
-
Method Detail
-
scaleType
RoundedTransformationBuilder scaleType(ImageView.ScaleType scaleType)
-
cornerRadius
RoundedTransformationBuilder cornerRadius(float radius)
Set corner radius for all corners in px.
- Parameters:
radius- the radius in px
-
cornerRadius
RoundedTransformationBuilder cornerRadius(int corner, float radius)
Set corner radius for a specific corner in px.
- Parameters:
corner- the corner to set.radius- the radius in px.
-
cornerRadiusDp
RoundedTransformationBuilder cornerRadiusDp(float radius)
Set corner radius for all corners in density independent pixels.
- Parameters:
radius- the radius in density independent pixels.
-
cornerRadiusDp
RoundedTransformationBuilder cornerRadiusDp(int corner, float radius)
Set corner radius for a specific corner in density independent pixels.
- Parameters:
corner- the corner to setradius- the radius in density independent pixels.
-
borderWidth
RoundedTransformationBuilder borderWidth(float width)
Set the border width in pixels.
- Parameters:
width- border width in pixels.
-
borderWidthDp
RoundedTransformationBuilder borderWidthDp(float width)
Set the border width in density independent pixels.
- Parameters:
width- border width in density independent pixels.
-
borderColor
RoundedTransformationBuilder borderColor(int color)
Set the border color.
- Parameters:
color- the color to set.
-
borderColor
RoundedTransformationBuilder borderColor(ColorStateList colors)
Set the border color as a ColorStateList.
- Parameters:
colors- the ColorStateList to set.
-
oval
RoundedTransformationBuilder oval(boolean oval)
Sets whether the image should be oval or not.
- Parameters:
oval- if the image should be oval.
-
-
-
-