compat/src/main/java/androidx/core/view/GravityCompat.java
public static void apply(int gravity, int w, int h, Rect container,
            Rect outRect, int layoutDirection) {
        if (SDK_INT >= 17) {
            Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
        } else {
            Gravity.apply(gravity, w, h, container, outRect);
        }
    }
/**
     * Apply a gravity constant to an object and take care if layout direction is RTL or not.
     *
     * @param gravity The desired placement of the object, as defined by the
     *                constants in this class.
     * @param w The horizontal size of the object.
     * @param h The vertical size of the object.
     * @param 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.
     * @param outRect Receives the computed frame of the object in its
     *                container.
     * @param layoutDirection The layout direction.
     *
     * @see ViewCompat#LAYOUT_DIRECTION_LTR
     * @see ViewCompat#LAYOUT_DIRECTION_RTL
     */
Apply a gravity constant to an object and take care if layout direction is RTL or not.
@param gravity The desired placement of the object, as defined by the
constants in this class.
@param w The horizontal size of the object.
@param h The vertical size of the object.
@param 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.
@param outRect Receives the computed frame of the object in its
container.
@param layoutDirection The layout direction.


Apply a gravity constant to an object and take care if layout direction is RTL or not . @param gravity The desired placement of the object as defined by the constants in this class . @param w The horizontal size of the object . @param h The vertical size of the object . @param 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 . @param outRect Receives the computed frame of the object in its container . @param layoutDirection The layout direction .
public static void apply(int gravity, int w, int h, Rect container,
            Rect outRect, int layoutDirection) {
        if (SDK_INT >= 17) {
            Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
        } else {
            Gravity.apply(gravity, w, h, container, outRect);
        }
    }
public static void apply ( int gravity , int w , int h , Rect container , Rect outRect , int layoutDirection ) { if ( SDK_INT >= 17 ) { Gravity . apply ( gravity , w , h , container , outRect , layoutDirection ) ; } else { Gravity . apply ( gravity , w , h , container , outRect ) ; } }
Apply a gravity constant to an object and take care if layout direction is RTL or not.
Apply a gravity constant to an object and take care if layout direction is RTL or not .