Class RoundedTransformationBuilder
- java.lang.Object
-
- com.batch.android.messaging.view.roundimage.RoundedTransformationBuilder
-
public final class RoundedTransformationBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RoundedTransformationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoundedTransformationBuilderborderColor(int color)Set the border color.RoundedTransformationBuilderborderColor(android.content.res.ColorStateList colors)Set the border color as aColorStateList.RoundedTransformationBuilderborderWidth(float width)Set the border width in pixels.RoundedTransformationBuilderborderWidthDp(float width)Set the border width in density independent pixels.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.RoundedTransformationBuilderoval(boolean oval)Sets whether the image should be oval or not.RoundedTransformationBuilderscaleType(android.widget.ImageView.ScaleType scaleType)
-
-
-
Method Detail
-
scaleType
public RoundedTransformationBuilder scaleType(android.widget.ImageView.ScaleType scaleType)
-
cornerRadius
public RoundedTransformationBuilder cornerRadius(float radius)
Set corner radius for all corners in px.- Parameters:
radius- the radius in px- Returns:
- the builder for chaining.
-
cornerRadius
public 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.- Returns:
- the builder for chaning.
-
cornerRadiusDp
public RoundedTransformationBuilder cornerRadiusDp(float radius)
Set corner radius for all corners in density independent pixels.- Parameters:
radius- the radius in density independent pixels.- Returns:
- the builder for chaining.
-
cornerRadiusDp
public 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.- Returns:
- the builder for chaining.
-
borderWidth
public RoundedTransformationBuilder borderWidth(float width)
Set the border width in pixels.- Parameters:
width- border width in pixels.- Returns:
- the builder for chaining.
-
borderWidthDp
public RoundedTransformationBuilder borderWidthDp(float width)
Set the border width in density independent pixels.- Parameters:
width- border width in density independent pixels.- Returns:
- the builder for chaining.
-
borderColor
public RoundedTransformationBuilder borderColor(int color)
Set the border color.- Parameters:
color- the color to set.- Returns:
- the builder for chaining.
-
borderColor
public RoundedTransformationBuilder borderColor(android.content.res.ColorStateList colors)
Set the border color as aColorStateList.- Parameters:
colors- theColorStateListto set.- Returns:
- the builder for chaining.
-
oval
public RoundedTransformationBuilder oval(boolean oval)
Sets whether the image should be oval or not.- Parameters:
oval- if the image should be oval.- Returns:
- the builder for chaining.
-
-