From 54c94dea8a26e66fa59a31fd9170ca221052d3aa Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 26 Sep 2013 15:36:34 -0700 Subject: Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu Allow calling code to specify left/right/start/end gravity when showing a popup attached to an anchor. This allows easy alignment of either the right or left edges of the popup and anchor view. Bug 10728401 Change-Id: Ie0844a04ea0576fa67b0972f5873aaa4c5b823f6 --- api/current.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index c2dfa92..8d7ad8e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -31576,6 +31576,7 @@ package android.widget { method public void setAnimationStyle(int); method public void setBackgroundDrawable(android.graphics.drawable.Drawable); method public void setContentWidth(int); + method public void setDropDownGravity(int); method public void setHeight(int); method public void setHorizontalOffset(int); method public void setInputMethodMode(int); @@ -31757,6 +31758,7 @@ package android.widget { public class PopupMenu { ctor public PopupMenu(android.content.Context, android.view.View); + ctor public PopupMenu(android.content.Context, android.view.View, int); method public void dismiss(); method public android.view.View.OnTouchListener getDragToOpenListener(); method public android.view.Menu getMenu(); @@ -31820,6 +31822,7 @@ package android.widget { method public void setWindowLayoutMode(int, 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); method public void showAtLocation(android.view.View, int, int, int); method public void update(); method public void update(int, int); -- cgit v1.1