Show / Hide Table of Contents

Class AN_Gravity

Standard constants and tools for placing an object within a potentially larger container.

Inheritance
System.Object
AN_Gravity
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.Android.App.View
Assembly: cs.temp.dll.dll
Syntax
public class AN_Gravity

Fields

AXIS_CLIP

Raw bit controlling whether the right/bottom edge is clipped to its container, based on the gravity direction being applied.

Declaration
public const int AXIS_CLIP = 8
Field Value
Type Description
System.Int32

AXIS_PULL_AFTER

Raw bit controlling how the right/bottom edge is placed.

Declaration
public const int AXIS_PULL_AFTER = 4
Field Value
Type Description
System.Int32

AXIS_PULL_BEFORE

Raw bit controlling how the left/top edge is placed.

Declaration
public const int AXIS_PULL_BEFORE = 2
Field Value
Type Description
System.Int32

AXIS_SPECIFIED

Raw bit indicating the gravity for an axis has been specified.

Declaration
public const int AXIS_SPECIFIED = 1
Field Value
Type Description
System.Int32

AXIS_X_SHIFT

Bits defining the horizontal axis.

Declaration
public const int AXIS_X_SHIFT = 0
Field Value
Type Description
System.Int32

AXIS_Y_SHIFT

Bits defining the vertical axis.

Declaration
public const int AXIS_Y_SHIFT = 4
Field Value
Type Description
System.Int32

BOTTOM

Push object to the bottom of its container, not changing its size.

Declaration
public const int BOTTOM = 80
Field Value
Type Description
System.Int32

CENTER

Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.

Declaration
public const int CENTER = 17
Field Value
Type Description
System.Int32

CENTER_HORIZONTAL

Place object in the horizontal center of its container, not changing its size.

Declaration
public const int CENTER_HORIZONTAL = 1
Field Value
Type Description
System.Int32

CENTER_VERTICAL

Place object in the vertical center of its container, not changing its size.

Declaration
public const int CENTER_VERTICAL = 16
Field Value
Type Description
System.Int32

CLIP_HORIZONTAL

Flag to clip the edges of the object to its container along the horizontal axis.

Declaration
public const int CLIP_HORIZONTAL = 8
Field Value
Type Description
System.Int32

CLIP_VERTICAL

Flag to clip the edges of the object to its container along the vertical axis.

Declaration
public const int CLIP_VERTICAL = 128
Field Value
Type Description
System.Int32

END

Push object to x-axis position at the end of its container, not changing its size.

Declaration
public const int END = 8388613
Field Value
Type Description
System.Int32

FILL

Grow the horizontal and vertical size of the object if needed so it completely fills its container.

Declaration
public const int FILL = 119
Field Value
Type Description
System.Int32

FILL_HORIZONTAL

Grow the horizontal size of the object if needed so it completely fills its container.

Declaration
public const int FILL_HORIZONTAL = 7
Field Value
Type Description
System.Int32

FILL_VERTICAL

Grow the vertical size of the object if needed so it completely fills its container.

Declaration
public const int FILL_VERTICAL = 112
Field Value
Type Description
System.Int32

HORIZONTAL_GRAVITY_MASK

Binary mask to get the absolute horizontal gravity of a gravity.

Declaration
public const int HORIZONTAL_GRAVITY_MASK = 7
Field Value
Type Description
System.Int32

LEFT

Push object to the left of its container, not changing its size.

Declaration
public const int LEFT = 3
Field Value
Type Description
System.Int32

NO_GRAVITY

Constant indicating that no gravity has been set

Declaration
public const int NO_GRAVITY = 0
Field Value
Type Description
System.Int32

RELATIVE_HORIZONTAL_GRAVITY_MASK

Binary mask for the horizontal gravity and script specific direction bit.

Declaration
public const int RELATIVE_HORIZONTAL_GRAVITY_MASK = 8388615
Field Value
Type Description
System.Int32

RELATIVE_LAYOUT_DIRECTION

Raw bit controlling whether the layout direction is relative or not (START/END instead of absolute LEFT/RIGHT).

Declaration
public const int RELATIVE_LAYOUT_DIRECTION = 8388608
Field Value
Type Description
System.Int32

RIGHT

Push object to the right of its container, not changing its size.

Declaration
public const int RIGHT = 5
Field Value
Type Description
System.Int32

START

Push object to x-axis position at the start of its container, not changing its size.

Declaration
public const int START = 8388611
Field Value
Type Description
System.Int32

TOP

Push object to the top of its container, not changing its size.

Declaration
public const int TOP = 48
Field Value
Type Description
System.Int32

VERTICAL_GRAVITY_MASK

Binary mask to get the vertical gravity of a gravity.

Declaration
public const int VERTICAL_GRAVITY_MASK = 112
Field Value
Type Description
System.Int32
In This Article
Back to top Generated by DocFX