compat/src/main/java/androidx/core/view/MarginLayoutParamsCompat.java
public static boolean isMarginRelative(ViewGroup.MarginLayoutParams lp) {
        if (SDK_INT >= 17) {
            return lp.isMarginRelative();
        } else {
            return false;
        }
    }
/**
     * Check if margins are relative.
     *
     * @return true if either marginStart or marginEnd has been set.
     */
Check if margins are relative.
@return true if either marginStart or marginEnd has been set.
Check if margins are relative . @return true if either marginStart or marginEnd has been set .
public static boolean isMarginRelative(ViewGroup.MarginLayoutParams lp) {
        if (SDK_INT >= 17) {
            return lp.isMarginRelative();
        } else {
            return false;
        }
    }
public static boolean isMarginRelative ( ViewGroup . MarginLayoutParams lp ) { if ( SDK_INT >= 17 ) { return lp . isMarginRelative ( ) ; } else { return false ; } }
Check if margins are relative.
Check if margins are relative .