Stay organized with collections
Save and categorize content based on your preferences.
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
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)
Parameters |
gravity |
int |
xAdjustment |
float |
yAdjustment |
float |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Positioning\n\nSummary: [Fields](#lfields) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nPositioning\n===========\n\n\n`\npublic\n\n\nclass\nPositioning\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.animation.Positioning |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA representation of the positioning of a view relative to another.\n\nSummary\n-------\n\n| ### Fields ||\n|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public final int` | [gravity](/reference/com/google/android/material/animation/Positioning#gravity) The alignment between the dependency and the child. |\n| ` public final float` | [xAdjustment](/reference/com/google/android/material/animation/Positioning#xAdjustment) The x adjustment of the child relative to the dependency. |\n| ` public final float` | [yAdjustment](/reference/com/google/android/material/animation/Positioning#yAdjustment) The y adjustment of the child relative to the dependency. |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Positioning](/reference/com/google/android/material/animation/Positioning#Positioning(int,%20float,%20float))`(int gravity, float xAdjustment, float yAdjustment) ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nFields\n------\n\n### gravity\n\n```\npublic final int gravity\n```\n\nThe alignment between the dependency and the child.\n\n\u003cbr /\u003e\n\n### xAdjustment\n\n```\npublic final float xAdjustment\n```\n\nThe x adjustment of the child relative to the dependency. Positive values will adjust the child\nto the right.\n\n\u003cbr /\u003e\n\n### yAdjustment\n\n```\npublic final float yAdjustment\n```\n\nThe y adjustment of the child relative to the dependency. Positive values will adjust the child\nto the bottom.\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### Positioning\n\n```\npublic Positioning (int gravity, \n float xAdjustment, \n float yAdjustment)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|----------------|\n| `gravity` | `int` \u003cbr /\u003e |\n| `xAdjustment` | `float` \u003cbr /\u003e |\n| `yAdjustment` | `float` \u003cbr /\u003e |"]]