EdgeContentLayout.Builder

Added in 1.1.0
Deprecated in 1.2.0

public final class EdgeContentLayout.Builder implements LayoutElementBuilders.LayoutElement.Builder


Builder class for EdgeContentLayout.

Summary

Public constructors

Creates a builder for the EdgeContentLayoutt.

Public methods

@NonNull EdgeContentLayout

Constructs and returns EdgeContentLayout with the provided content and look.

@NonNull EdgeContentLayout.Builder

Sets the additional content to this layout, inside of the screen.

@NonNull EdgeContentLayout.Builder

Sets the content to be around the edges.

@NonNull EdgeContentLayout.Builder

Sets the content in the primary label slot which will be above the main content.

@NonNull EdgeContentLayout.Builder

Sets the content in the secondary label slot which will be below the main content.

Public constructors

Builder

Added in 1.1.0
Deprecated in 1.2.0
public Builder(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Creates a builder for the EdgeContentLayoutt. Custom content inside of it can later be set with (setContent.

Public methods

build

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull EdgeContentLayout build()

Constructs and returns EdgeContentLayout with the provided content and look.

setContent

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull EdgeContentLayout.Builder setContent(@NonNull LayoutElementBuilders.LayoutElement content)

Sets the additional content to this layout, inside of the screen.

setEdgeContent

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull EdgeContentLayout.Builder setEdgeContent(@NonNull LayoutElementBuilders.LayoutElement edgeContent)

Sets the content to be around the edges. This can be CircularProgressIndicator.

setPrimaryLabelTextContent

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull EdgeContentLayout.Builder setPrimaryLabelTextContent(
    @NonNull LayoutElementBuilders.LayoutElement primaryLabelText
)

Sets the content in the primary label slot which will be above the main content.

setSecondaryLabelTextContent

Added in 1.1.0
Deprecated in 1.2.0
public @NonNull EdgeContentLayout.Builder setSecondaryLabelTextContent(
    @NonNull LayoutElementBuilders.LayoutElement secondaryLabelText
)

Sets the content in the secondary label slot which will be below the main content. It is highly recommended to have primary label set when having secondary label.