# DividerAttributes.DraggableDividerAttributes

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/embedding/DividerAttributes.kt+class:androidx.window.embedding.DividerAttributes.DraggableDividerAttributes) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

*** ** * ** ***

<br />

```
class DividerAttributes.DraggableDividerAttributes : DividerAttributes
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.window.embedding.DividerAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes) ||
|   | ↳ | [androidx.window.embedding.DividerAttributes.DraggableDividerAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes) |

*** ** * ** ***

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 `https://developer.android.com/reference/android/app/Activity.html#getWindow()` and `https://developer.android.com/reference/android/view/Window.html#setBackgroundDrawable(android.graphics.drawable.Drawable)` to configure the veil colors.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.Builder#setDividerAttributes(androidx.window.embedding.DividerAttributes)` |   |

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/window/RequiresWindowSdkExtension(version = 6) class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes.Builder` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes` builder. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#dragRange()` the range that a divider is allowed to be dragged. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#isDraggingToFullscreenAllowed()` 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](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes) `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#color()`

the color of the divider.
`@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = -1) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#widthDp()`

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](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val dragRange: DividerAttributes.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](https://developer.android.com/jetpack/androidx/releases/window#1.5.0)

```
val isDraggingToFullscreenAllowed: 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. Default to `false`.