diff --git a/api/current.txt b/api/current.txt index 8e0c75e85a99d..f0b491a548fbc 100644 --- a/api/current.txt +++ b/api/current.txt @@ -56394,10 +56394,10 @@ package android.widget { method public int getWindowLayoutType(); method public boolean isAboveAnchor(); method public boolean isAttachedInDecor(); - method public boolean isClipToScreenEnabled(); + method public boolean isClippedToScreen(); method public boolean isClippingEnabled(); method public boolean isFocusable(); - method public boolean isLayoutInScreenEnabled(); + method public boolean isLaidOutInScreen(); method public boolean isOutsideTouchable(); method public boolean isShowing(); method public boolean isSplitTouchEnabled(); @@ -56406,7 +56406,6 @@ package android.widget { method public void setAnimationStyle(int); method public void setAttachedInDecor(boolean); method public void setBackgroundDrawable(android.graphics.drawable.Drawable); - method public void setClipToScreenEnabled(boolean); method public void setClippingEnabled(boolean); method public void setContentView(android.view.View); method public void setElevation(float); @@ -56417,7 +56416,8 @@ package android.widget { method public void setHeight(int); method public void setIgnoreCheekPress(); method public void setInputMethodMode(int); - method public void setLayoutInScreenEnabled(boolean); + method public void setIsClippedToScreen(boolean); + method public void setIsLaidOutInScreen(boolean); method public void setOnDismissListener(android.widget.PopupWindow.OnDismissListener); method public void setOutsideTouchable(boolean); method public void setOverlapAnchor(boolean); diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java index 25e5dd32c6b20..16b903d4da9e6 100644 --- a/core/java/android/widget/ListPopupWindow.java +++ b/core/java/android/widget/ListPopupWindow.java @@ -702,7 +702,7 @@ public class ListPopupWindow implements ShowableListMenu { mPopup.setWidth(widthSpec); mPopup.setHeight(heightSpec); - mPopup.setClipToScreenEnabled(true); + mPopup.setIsClippedToScreen(true); // use outside touchable to dismiss drop down when touching outside of it, so // only set this if the dropdown is not always visible diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 279829672c57c..03e7e10aaf84a 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -887,9 +887,9 @@ public class PopupWindow { * * @return true if popup will be clipped to the screen instead of the window, false otherwise * - * @see #setClipToScreenEnabled(boolean) + * @see #setIsClippedToScreen(boolean) */ - public boolean isClipToScreenEnabled() { + public boolean isClippedToScreen() { return mClipToScreen; } @@ -902,9 +902,9 @@ public class PopupWindow { * * @param enabled true to clip to the screen. * - * @see #isClipToScreenEnabled() + * @see #isClippedToScreen() */ - public void setClipToScreenEnabled(boolean enabled) { + public void setIsClippedToScreen(boolean enabled) { mClipToScreen = enabled; } @@ -961,9 +961,9 @@ public class PopupWindow { * * @return true if the window will always be positioned in screen coordinates. * - * @see #setLayoutInScreenEnabled(boolean) + * @see #setIsLaidOutInScreen(boolean) */ - public boolean isLayoutInScreenEnabled() { + public boolean isLaidOutInScreen() { return mLayoutInScreen; } @@ -974,9 +974,9 @@ public class PopupWindow { * * @param enabled true if the popup should always be positioned in screen coordinates * - * @see #isLayoutInScreenEnabled() + * @see #isLaidOutInScreen() */ - public void setLayoutInScreenEnabled(boolean enabled) { + public void setIsLaidOutInScreen(boolean enabled) { mLayoutInScreen = enabled; } @@ -1016,7 +1016,7 @@ public class PopupWindow { * This will cause the popup to inset its content to account for system windows overlaying * the screen, such as the status bar. * - *
This will often be combined with {@link #setLayoutInScreenEnabled(boolean)}. + *
This will often be combined with {@link #setIsLaidOutInScreen(boolean)}. * * @param enabled true if the popup's views should inset content to account for system windows, * the way that decor views behave for full-screen windows. @@ -2114,7 +2114,7 @@ public class PopupWindow { *