Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c35b08c authored by Adam Powell's avatar Adam Powell
Browse files

Add ViewGroup#getClipToPadding()

It's kind of silly that we've gone this long without a good way to
query this since it makes writing custom views that properly handle
EdgeEffects, etc. a real pain.

Change-Id: I08e1cdf9ec7b8ec3c287c22a5aa19d07a166a4e0
parent 2c1d7b3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33640,6 +33640,7 @@ package android.view {
    method protected boolean getChildStaticTransformation(android.view.View, android.view.animation.Transformation);
    method public boolean getChildVisibleRect(android.view.View, android.graphics.Rect, android.graphics.Point);
    method public boolean getClipChildren();
    method public boolean getClipToPadding();
    method public int getDescendantFocusability();
    method public android.view.View getFocusedChild();
    method public android.view.animation.LayoutAnimationController getLayoutAnimation();
+11 −0
Original line number Diff line number Diff line
@@ -3332,6 +3332,17 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        }
    }

    /**
     * Check if this ViewGroup is configured to clip child views to its padding.
     *
     * @return true if this ViewGroup clips children to its padding, false otherwise
     *
     * @attr ref android.R.styleable#ViewGroup_clipToPadding
     */
    public boolean getClipToPadding() {
        return hasBooleanFlag(FLAG_CLIP_TO_PADDING);
    }

    /**
     * {@inheritDoc}
     */