- gravity
- The desired placement of the object, as defined by the constants in this class.
- w
- The horizontal size of the object.
- h
- The vertical size of the object.
- container
- The frame of the containing space, in which the object will be placed. Should be large enough to contain the width and height of the object.
- outRect
- Receives the computed frame of the object in its container.
- layoutDirection
- The layout direction.
Apply a gravity constant to an object and take care if layout direction is RTL or not.