# R.attr

Artifact: [androidx.coordinatorlayout:coordinatorlayout](https://developer.android.com/jetpack/androidx/releases/coordinatorlayout)

*** ** * ** ***


```
class R.attr
```

<br />

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#attr()()` |

| ### Public properties |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#keylines()` A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_anchor()` The id of an anchor view that this view should position relative to. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_anchorGravity()` Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_behavior()` The class name of a Behavior class defining special runtime behavior for this child view. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_dodgeInsetEdges()` Specifies how this view dodges the inset edges of the CoordinatorLayout. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_insetEdge()` Specifies how this view insets the CoordinatorLayout and make some other views dodge it. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#layout_keyline()` The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/coordinatorlayout/R.attr#statusBarBackground()` Drawable to display behind the status bar when the view is set to draw behind it. |

## Public constructors

### attr

```
attr()
```

## Public properties

### keylines

```
java-static val keylines: Int
```

A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. Child views can refer to these keylines for alignment using layout_keyline="index" where index is a 0-based index into this array.

May be a reference to another resource, in the form "`@[+][package:]type/name`" or a theme attribute in the form "`?[package:]type/name`".

### layout_anchor

```
java-static val layout_anchor: Int
```

The id of an anchor view that this view should position relative to.

May be a reference to another resource, in the form "`@[+][package:]type/name`" or a theme attribute in the form "`?[package:]type/name`".

### layout_anchorGravity

```
java-static val layout_anchorGravity: Int
```

Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.

Must be one or more (separated by '\|') of the following constant values.

| Constant | Value | Description |
|---|---|---|
| bottom | 50 | Push object to the bottom of its container, not changing its size. |
| center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
| center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
| center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
| clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges. |
| clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
| end | 800005 | Push object to the end of its container, not changing its size. |
| fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
| fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
| fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
| left | 3 | Push object to the left of its container, not changing its size. |
| right | 5 | Push object to the right of its container, not changing its size. |
| start | 800003 | Push object to the beginning of its container, not changing its size. |
| top | 30 | Push object to the top of its container, not changing its size. |

### layout_behavior

```
java-static val layout_behavior: Int
```

The class name of a Behavior class defining special runtime behavior for this child view.

May be a string value, using '\\\\;' to escape characters such as '\\\\n' or '\\\\uxxxx' for a unicode character;

### layout_dodgeInsetEdges

```
java-static val layout_dodgeInsetEdges: Int
```

Specifies how this view dodges the inset edges of the CoordinatorLayout.

Must be one or more (separated by '\|') of the following constant values.

| Constant | Value | Description |
|---|---|---|
| all | 77 | Dodge all the inset edges. |
| bottom | 50 | Dodge the bottom inset edge. |
| end | 800005 | Dodge the end inset edge. |
| left | 3 | Dodge the left inset edge. |
| none | 0 | Don't dodge any edges |
| right | 5 | Dodge the right inset edge. |
| start | 800003 | Dodge the start inset edge. |
| top | 30 | Dodge the top inset edge. |

### layout_insetEdge

```
java-static val layout_insetEdge: Int
```

Specifies how this view insets the CoordinatorLayout and make some other views dodge it.

Must be one of the following constant values.

| Constant | Value | Description |
|---|---|---|
| bottom | 50 | Inset the bottom edge. |
| end | 800005 | Inset the end edge. |
| left | 3 | Inset the left edge. |
| none | 0 | Don't inset. |
| right | 5 | Inset the right edge. |
| start | 800003 | Inset the start edge. |
| top | 30 | Inset the top edge. |

### layout_keyline

```
java-static val layout_keyline: Int
```

The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline.

May be an integer value, such as "`100`".

### statusBarBackground

```
java-static val statusBarBackground: Int
```

Drawable to display behind the status bar when the view is set to draw behind it.

May be a reference to another resource, in the form "`@[+][package:]type/name`" or a theme attribute in the form "`?[package:]type/name`".

May be a color value, in the form of "`#rgb`", "`#argb`", "`#rrggbb`", or "`#aarrggbb`".