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