Class RoundedTransformationBuilder


  • public final class RoundedTransformationBuilder
    extends java.lang.Object
    • Constructor Detail

      • RoundedTransformationBuilder

        public RoundedTransformationBuilder()
    • Method Detail

      • 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 set
        radius - 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 a ColorStateList.
        Parameters:
        colors - the ColorStateList to 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.