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
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user