Enclosing class:
ImageAppearance


public static final class ImageAppearance.Builder
extends java.lang.Object
Builds a ImageAppearance.

Constructor Summary

Constructors
Constructor and Description
Builder()
Creates a new ImageAppearance.Builder for constructing a ImageAppearance

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
ImageAppearancebuild()
Constructs a ImageAppearance with the specified appearance values.
ImageAppearance.BuildersetWidthConstraint(SizeConstraint widthConstraint)
Returns ImageView appearance configured with width constraint.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Builder

public Builder()
Creates a new ImageAppearance.Builder for constructing a ImageAppearance

Method Detail

build

@NonNull
public ImageAppearance build()
Constructs a ImageAppearance with the specified appearance values.
Returns:
ImageAppearance.

setWidthConstraint

@NonNull
public ImageAppearance.Builder setWidthConstraint(@NonNull
                                                           SizeConstraint widthConstraint)
Returns ImageView appearance configured with width constraint.
Parameters:
widthConstraint - Constraint which defines the way image width should be calculated.
Returns:
ImageAppearance.Builder with the specified width constraint.