Positioning

public class Positioning
extends Object

java.lang.Object
   ↳ com.google.android.material.animation.Positioning


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

Summary

Fields

public final int gravity

The alignment between the dependency and the child.

public final float xAdjustment

The x adjustment of the child relative to the dependency.

public final float yAdjustment

The y adjustment of the child relative to the dependency.

Public constructors

Positioning(int gravity, float xAdjustment, float yAdjustment)

Inherited methods

From class java.lang.Object

Fields

gravity

int gravity

The alignment between the dependency and the child.

xAdjustment

float xAdjustment

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

yAdjustment

float yAdjustment

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

Public constructors

Positioning

Positioning (int gravity, 
                float xAdjustment, 
                float yAdjustment)

Parameters
gravity int

xAdjustment float

yAdjustment float