SplitAttributes.Builder


public final class SplitAttributes.Builder


Builder for creating an instance of SplitAttributes.

  • The default split type is an equal split between primary and secondary containers.

  • The default layout direction is based on locale.

  • The default animation params is to use the current theme window background color and system transitions.

  • The default divider attributes is not to use divider.

Summary

Public constructors

Public methods

final @NonNull SplitAttributes

Builds a SplitAttributes instance with the attributes specified by setSplitType, setLayoutDirection, and setAnimationParams.

final @NonNull SplitAttributes.Builder

Sets the animation params to use during animation of the split involving this SplitAttributes object if the animation requires a background color or non-default transitions.

final @NonNull SplitAttributes.Builder

Sets the DividerAttributes for this split.

final @NonNull SplitAttributes.Builder

Sets the split layout direction attribute.

final @NonNull <a href="/reference/androidx/window/embedding/SplitAt