diff options
author | Chris Banes <chrisbanes@google.com> | 2015-04-15 07:05:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-15 07:05:51 +0000 |
commit | 5c1405e10c223261bc3d4fef4671f069cadf760c (patch) | |
tree | 806d516ccfab4dcabe609ee1c74e7356e8e7dd78 | |
parent | 8b669747584dd4d13b97c8a33ced2d11327b4042 (diff) | |
parent | 36344a90c226c90243e4e02bfb13589e120431dd (diff) | |
download | frameworks_base-5c1405e10c223261bc3d4fef4671f069cadf760c.zip frameworks_base-5c1405e10c223261bc3d4fef4671f069cadf760c.tar.gz frameworks_base-5c1405e10c223261bc3d4fef4671f069cadf760c.tar.bz2 |
Merge "Unhide PopupWindow window layout type calls"
-rw-r--r-- | api/current.txt | 2 | ||||
-rw-r--r-- | api/system-current.txt | 2 | ||||
-rw-r--r-- | core/java/android/widget/PopupWindow.java | 13 |
3 files changed, 12 insertions, 5 deletions
diff --git a/api/current.txt b/api/current.txt index 38850ab..b307d61 100644 --- a/api/current.txt +++ b/api/current.txt @@ -39810,6 +39810,7 @@ package android.widget { method public boolean getOverlapAnchor(); method public int getSoftInputMode(); method public int getWidth(); + method public int getWindowLayoutType(); method public boolean isAboveAnchor(); method public boolean isAttachedInDecor(); method public boolean isClippingEnabled(); @@ -39839,6 +39840,7 @@ package android.widget { method public void setTouchable(boolean); method public void setWidth(int); method public deprecated void setWindowLayoutMode(int, int); + method public void setWindowLayoutType(int); method public void showAsDropDown(android.view.View); method public void showAsDropDown(android.view.View, int, int); method public void showAsDropDown(android.view.View, int, int, int); diff --git a/api/system-current.txt b/api/system-current.txt index a570d86..9184d8b 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -42735,6 +42735,7 @@ package android.widget { method public boolean getOverlapAnchor(); method public int getSoftInputMode(); method public int getWidth(); + method public int getWindowLayoutType(); method public boolean isAboveAnchor(); method public boolean isAttachedInDecor(); method public boolean isClippingEnabled(); @@ -42764,6 +42765,7 @@ package android.widget { method public void setTouchable(boolean); method public void setWidth(int); method public deprecated void setWindowLayoutMode(int, int); + method public void setWindowLayoutType(int); method public void showAsDropDown(android.view.View); method public void showAsDropDown(android.view.View, int, int); method public void showAsDropDown(android.view.View, int, int, int); diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 8792323..c5b5c84 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -860,19 +860,22 @@ public class PopupWindow { } /** - * Set the layout type for this window. Should be one of the TYPE constants defined in - * {@link WindowManager.LayoutParams}. + * Set the layout type for this window. This value will be passed through to + * {@link WindowManager.LayoutParams#type} therefore the value should match any value + * {@link WindowManager.LayoutParams#type} accepts. * * @param layoutType Layout type for this window. - * @hide + * + * @see WindowManager.LayoutParams#type */ public void setWindowLayoutType(int layoutType) { mWindowLayoutType = layoutType; } /** - * @return The layout type for this window. - * @hide + * Returns the layout type for this window. + * + * @see #setWindowLayoutType(int) */ public int getWindowLayoutType() { return mWindowLayoutType; |