# DividerAttributes

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

*** ** * ** ***

<br />

```
abstract class DividerAttributes
```

<br />

Known direct subclasses [DividerAttributes.DraggableDividerAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes), [DividerAttributes.FixedDividerAttributes](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes` | The attributes of a draggable divider. |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes` | The attributes of a fixed divider. |

*** ** * ** ***

The attributes of the divider layout and behavior.

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

## Summary

| ### Nested types |
|---|
| `abstract class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange` Describes the range that the user is allowed to drag the draggable divider. |
| `class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange : https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange` A drag range represented as an interval of the primary container's split ratios. |
| `class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes : https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes` The attributes of a draggable divider. |
| `@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. |
| `class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes : https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes` The attributes of a fixed divider. |
| `@https://developer.android.com/reference/kotlin/androidx/window/RequiresWindowSdkExtension(version = 6) class https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes.Builder` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes` builder. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#WIDTH_SYSTEM_DEFAULT()` A special value to indicate that the system will choose a default value based on the display size and form factor. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#NO_DIVIDER()` Indicates that no divider is requested. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#toString()()` |

| ### Public properties |
|---|---|
| `@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. |

## Constants

### WIDTH_SYSTEM_DEFAULT

```
const val WIDTH_SYSTEM_DEFAULT: Int
```

A special value to indicate that the system will choose a default value based on the display size and form factor. Some devices may choose 0 as the default width, while the same app may be shown with a wider divider on other devices that have a different default value. If an app prefers to show a divider of a fixed width on all device, it should set the fixed width in `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes.Builder#setWidthDp(kotlin.Int)` or `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes.Builder#setWidthDp(kotlin.Int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes#widthDp()` |   |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.FixedDividerAttributes.Builder#setWidthDp(kotlin.Int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DraggableDividerAttributes.Builder#setWidthDp(kotlin.Int)` |   |

## Public companion properties

### NO_DIVIDER

```
val NO_DIVIDER: DividerAttributes
```

Indicates that no divider is requested.

## Public functions

### toString

```
open fun toString(): String
```

## Public properties

### color

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

```
val color: @ColorInt Int
```

the color of the divider.

### widthDp

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

```
val widthDp: @IntRange(from = -1) Int
```

the width of the divider.