Android Guides | Samples

Android.Views.GravityFlags Enumeration

Enumerates values returned by several types and taken as a parameter of several types.

Syntax

[System.Flags]
public enum GravityFlags

Remarks

Enumerates values returned by the following: and taken as a parameter of the following: .

Members

Member NameDescription
AxisClipRaw bit controlling whether the right/bottom edge is clipped to its container, based on the gravity direction being applied.
AxisPullAfterRaw bit controlling how the right/bottom edge is placed.
AxisPullBeforeRaw bit controlling how the left/top edge is placed.
AxisSpecifiedRaw bit indicating the gravity for an axis has been specified.
AxisXShiftBits defining the horizontal axis.
AxisYShiftBits defining the vertical axis.
BottomPush object to the bottom of its container, not changing its size.
CenterPlace the object in the center of its container in both the vertical and horizontal axis, not changing its size.
CenterHorizontalPlace object in the horizontal center of its container, not changing its size.
CenterVerticalPlace object in the vertical center of its container, not changing its size.
ClipHorizontalFlag to clip the edges of the object to its container along the horizontal axis.
ClipVerticalFlag to clip the edges of the object to its container along the vertical axis.
DisplayClipHorizontalSpecial constant to enable clipping to an overall display along the horizontal dimension. This is not applied by default by Gravity.Apply(GravityFlags,Int32,Int32,Int32,Int32,Int32,Int32); you must do so yourself by calling Gravity.ApplyDisplay(GravityFlags,Rect,Rect).
DisplayClipVerticalSpecial constant to enable clipping to an overall display along the vertical dimension. This is not applied by default by Gravity.Apply(GravityFlags,Int32,Int32,Int32,Int32,Int32,Int32); you must do so yourself by calling Gravity.ApplyDisplay(GravityFlags,Rect,Rect).
EndPush object to x-axis position at the end of its container, not changing its size.
FillGrow the horizontal and vertical size of the object if needed so it completely fills its container.
FillHorizontalGrow the horizontal size of the object if needed so it completely fills its container.
FillVerticalGrow the vertical size of the object if needed so it completely fills its container.
HorizontalGravityMaskBinary mask to get the absolute horizontal gravity of a gravity.
LeftPush object to the left of its container, not changing its size.
NoGravityConstant indicating that no gravity has been set
RelativeHorizontalGravityMaskBinary mask for the horizontal gravity and script specific direction bit.
RelativeLayoutDirectionRaw bit controlling whether the layout direction is relative or not (START/END instead of absolute LEFT/RIGHT).
RightPush object to the right of its container, not changing its size.
StartPush object to x-axis position at the start of its container, not changing its size.
TopPush object to the top of its container, not changing its size.
VerticalGravityMaskBinary mask to get the vertical gravity of a gravity.

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.GravityFlags are listed below.

See Also: Enum

Public Fields

AxisClipGravityFlags. Raw bit controlling whether the right/bottom edge is clipped to its container, based on the gravity direction being applied.
AxisPullAfterGravityFlags. Raw bit controlling how the right/bottom edge is placed.
AxisPullBeforeGravityFlags. Raw bit controlling how the left/top edge is placed.
AxisSpecifiedGravityFlags. Raw bit indicating the gravity for an axis has been specified.
AxisXShiftGravityFlags. Bits defining the horizontal axis.
AxisYShiftGravityFlags. Bits defining the vertical axis.
BottomGravityFlags. Push object to the bottom of its container, not changing its size.
CenterGravityFlags. Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
CenterHorizontalGravityFlags. Place object in the horizontal center of its container, not changing its size.
CenterVerticalGravityFlags. Place object in the vertical center of its container, not changing its size.
ClipHorizontalGravityFlags. Flag to clip the edges of the object to its container along the horizontal axis.
ClipVerticalGravityFlags. Flag to clip the edges of the object to its container along the vertical axis.
DisplayClipHorizontalGravityFlags. Special constant to enable clipping to an overall display along the horizontal dimension. This is not applied by default by Gravity.Apply(GravityFlags,Int32,Int32,Int32,Int32,Int32,Int32); you must do so yourself by calling Gravity.ApplyDisplay(GravityFlags,Rect,Rect).
DisplayClipVerticalGravityFlags. Special constant to enable clipping to an overall display along the vertical dimension. This is not applied by default by Gravity.Apply(GravityFlags,Int32,Int32,Int32,Int32,Int32,Int32); you must do so yourself by calling Gravity.ApplyDisplay(GravityFlags,Rect,Rect).
EndGravityFlags. Push object to x-axis position at the end of its container, not changing its size.
FillGravityFlags. Grow the horizontal and vertical size of the object if needed so it completely fills its container.
FillHorizontalGravityFlags. Grow the horizontal size of the object if needed so it completely fills its container.
FillVerticalGravityFlags. Grow the vertical size of the object if needed so it completely fills its container.
HorizontalGravityMaskGravityFlags. Binary mask to get the absolute horizontal gravity of a gravity.
LeftGravityFlags. Push object to the left of its container, not changing its size.
NoGravityGravityFlags. Constant indicating that no gravity has been set
RelativeHorizontalGravityMaskGravityFlags. Binary mask for the horizontal gravity and script specific direction bit.
RelativeLayoutDirectionGravityFlags. Raw bit controlling whether the layout direction is relative or not (START/END instead of absolute LEFT/RIGHT).
RightGravityFlags. Push object to the right of its container, not changing its size.
StartGravityFlags. Push object to x-axis position at the start of its container, not changing its size.
TopGravityFlags. Push object to the top of its container, not changing its size.
VerticalGravityMaskGravityFlags. Binary mask to get the vertical gravity of a gravity.