DividerAttributes.DraggableDividerAttributes


public final class DividerAttributes.DraggableDividerAttributes extends DividerAttributes


The attributes of a draggable divider. A draggable divider draws a line between the primary and secondary containers with a drag handle that the user can drag and resize the containers.

While dragging, the content of the activity is temporarily covered by a solid color veil, where the color is determined by the window background color of the activity. Apps may use android.app.Activity.getWindow and android.view.Window.setBackgroundDrawable to configure the veil colors.

Summary

Public methods

boolean
equals(Object other)
final @NonNull DividerAttributes.DragRange

the range that a divider is allowed to be dragged.

int
@NonNull String

Inherited methods

From androidx.window.embedding.DividerAttributes
final int

the color of the divider.

final int

the width of the divider.

Public methods

equals

public boolean equals(Object other)

getDragRange

Added in 1.4.0-alpha01
public final @NonNull DividerAttributes.DragRange getDragRange()

the range that a divider is allowed to be dragged. When the user drags the divider beyond this range, the system will choose to either fully expand the container or move the divider back into the range.

hashCode

public int hashCode()

toString

public @NonNull String toString()