Example usage for Java android.view Gravity fields, constructors, methods, implement or subclass
The text is from its open source code.
int | NO_GRAVITY Constant indicating that no gravity has been set |
int | AXIS_SPECIFIED Raw bit indicating the gravity for an axis has been specified. |
int | AXIS_Y_SHIFT Bits defining the vertical axis. |
int | TOP Push object to the top of its container, not changing its size. |
int | BOTTOM Push object to the bottom of its container, not changing its size. |
int | LEFT Push object to the left of its container, not changing its size. |
int | RIGHT Push object to the right of its container, not changing its size. |
int | CENTER_VERTICAL Place object in the vertical center of its container, not changing its size. |
int | FILL_VERTICAL Grow the vertical size of the object if needed so it completely fills its container. |
int | CENTER_HORIZONTAL Place object in the horizontal center of its container, not changing its size. |
int | FILL_HORIZONTAL Grow the horizontal size of the object if needed so it completely fills its container. |
int | CENTER Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
int | FILL Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
int | CLIP_VERTICAL Flag to clip the edges of the object to its container along the vertical axis. |
int | HORIZONTAL_GRAVITY_MASK Binary mask to get the absolute horizontal gravity of a gravity. |
int | VERTICAL_GRAVITY_MASK Binary mask to get the vertical gravity of a gravity. |
int | START Push object to x-axis position at the start of its container, not changing its size. |
int | END Push object to x-axis position at the end of its container, not changing its size. |
int | RELATIVE_HORIZONTAL_GRAVITY_MASK Binary mask for the horizontal gravity and script specific direction bit. |
int | getAbsoluteGravity(int gravity, int layoutDirection) Convert script specific gravity to absolute horizontal value. if horizontal direction is LTR, then START will set LEFT and END will set RIGHT. |
boolean | isHorizontal(int gravity) Indicate whether the supplied gravity has an horizontal pull. |
boolean | isVertical(int gravity) Indicate whether the supplied gravity has a vertical pull. |