# 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)

*** ** * ** ***


```
public final class DividerAttributes.DraggableDividerAttributes extends DividerAttributes
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.window.embedding.DividerAttributes](https://developer.android.com/reference/androidx/window/embedding/DividerAttributes) ||
|   | ↳ | [androidx.window.embedding.DividerAttributes.DraggableDividerAttributes](https://developer.android.com/reference/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/androidx/window/embedding/SplitAttributes.Builder#setDividerAttributes(androidx.window.embedding.DividerAttributes)` |   |

## Summary

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#getDragRange()()` the range that a divider is allowed to be dragged. |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#hashCode()()` |
| `final boolean` | `https://developer.android.com/reference/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. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes#toString()()` |

| ### Inherited methods |
|---|
| From [androidx.window.embedding.DividerAttributes](https://developer.android.com/reference/androidx/window/embedding/DividerAttributes) |---|---| | `final int` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes#getColor()()` the color of the divider. | | `final int` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes#getWidthDp()()` the width of the divider. | |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getDragRange

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
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()
```

### isDraggingToFullscreenAllowed

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/window#1.5.0)

```
public final boolean 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. Default to `false`.

### toString

```
public @NonNull String toString()
```