DividerAttributes.DraggableDividerAttributes


class DividerAttributes.DraggableDividerAttributes : 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 functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

DividerAttributes.DragRange

the range that a divider is allowed to be dragged.

Boolean

if true, the user is allowed to drag beyond the specified range temporarily, and when dragging is finished, the system will choose to either fully expand the larger container or move the divider back to the range limit.

Inherited properties

From androidx.window.embedding.DividerAttributes
Int

the color of the divider.

Int

the width of the divider.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

dragRange

Added in 1.4.0
val dragRangeDividerAttributes.DragRange

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.

isDraggingToFullscreenAllowed

Added in 1.5.0-alpha02
val isDraggingToFullscreenAllowedBoolean

if true, the user is allowed to drag beyond the specified range temporarily, and when dragging is finished, the system will choose to either fully expand the larger container or move the divider back to the range limit. Default to false.