# Positioning

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/animation/Positioning.java)

*** ** * ** ***


```
public class Positioning
```

<br />

*** ** * ** ***

A representation of the positioning of a view relative to another.

## Summary

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/com/google/android/material/animation/Positioning#gravity()` The alignment between the dependency and the child. |
| `final float` | `https://developer.android.com/reference/com/google/android/material/animation/Positioning#xAdjustment()` The x adjustment of the child relative to the dependency. |
| `final float` | `https://developer.android.com/reference/com/google/android/material/animation/Positioning#yAdjustment()` The y adjustment of the child relative to the dependency. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/animation/Positioning#Positioning(int,float,float)(int gravity, float xAdjustment, float yAdjustment)` |

## Public fields

### gravity

```
public final int gravity
```

The alignment between the dependency and the child.

### xAdjustment

```
public final float xAdjustment
```

The x adjustment of the child relative to the dependency. Positive values will adjust the child to the right.

### yAdjustment

```
public final float yAdjustment
```

The y adjustment of the child relative to the dependency. Positive values will adjust the child to the bottom.

## Public constructors

### Positioning

```
public Positioning(int gravity, float xAdjustment, float yAdjustment)
```