public final class

ImageViewStyle.Builder

extends ViewStyle.BaseBuilder<ImageViewStyle, ImageViewStyle.Builder>

 java.lang.Object

androidx.autofill.inline.common.BundledStyle.Builder<ViewStyle>

androidx.autofill.inline.common.ViewStyle.BaseBuilder<ImageViewStyle, ImageViewStyle.Builder>

↳androidx.autofill.inline.common.ImageViewStyle.Builder

Overview

Builder for the ImageViewStyle.

Summary

Fields
from BundledStyle.Builder<T>mBundle
Constructors
publicBuilder()

Methods
public abstract BundledStylebuild()

Returns a subclass of BundledStyle built by this builder.

protected ImageViewStyle.BuildergetThis()

public ImageViewStyle.BuildersetMaxHeight(int maxHeight)

Sets a maximum height for the image view.

public ImageViewStyle.BuildersetMaxWidth(int maxWidth)

Sets a maximum width for the image view.

public ImageViewStyle.BuildersetScaleType(ImageView.ScaleType scaleType)

Sets the scale type of the image view.

public ImageViewStyle.BuildersetTintList(ColorStateList imageTintList)

Sets a tint color to the image view.

from ViewStyle.BaseBuilder<T, B>setBackground, setBackgroundColor, setLayoutMargin, setPadding
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

protected ImageViewStyle.Builder getThis()

public ImageViewStyle.Builder setScaleType(ImageView.ScaleType scaleType)

Sets the scale type of the image view.

Parameters:

scaleType: The desired scaling mode.

See also: ImageView

public ImageViewStyle.Builder setMaxWidth(int maxWidth)

Sets a maximum width for the image view.

Parameters:

maxWidth: maximum width for this view

See also: ImageView

public ImageViewStyle.Builder setMaxHeight(int maxHeight)

Sets a maximum height for the image view.

Parameters:

maxHeight: maximum height for this view

See also: ImageView

public ImageViewStyle.Builder setTintList(ColorStateList imageTintList)

Sets a tint color to the image view.

Parameters:

imageTintList: the tint color to apply to the image

See also: ImageView

public abstract BundledStyle build()

Returns a subclass of BundledStyle built by this builder.