标签:android style io ar sp for java on div
java.lang.Object | |
? | android.widget.PopupWindow //widget |
android.widget.PopupWindow.OnDismissListenerClass OverviewListener that is called when this popup window is dismissed.
void android.widget.PopupWindow.setFocusable(boolean focusable)
public void setFocusable (boolean focusable)Since: API Level 1
Changes the focusability of the popup window. When focusable, the window will grab the focus from the current focused widget if the popup contains a focusable If the popup is showing, calling this method will take effect only the next time the popup is shown or through a manual call to one of the
public void setOutsideTouchable (boolean touchable)Since: API Level 3
Controls whether the pop-up will be informed of touch events outside of its window. This only makes sense for pop-ups that are touchable but not focusable, which means touches outside of the window will be delivered to the window behind. The default is false. If the popup is showing, calling this method will take effect only the next time the popup is shown or through a manual call to one of the public void showAsDropDown (View anchor, int xoff, int yoff)Since: API Level 1
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates. If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent scroll view can be scrolled, the bottom-left corner of the popup is pinned at the top left corner of the anchor view. If the view later scrolls to move
Parameters
See Alsopublic void showAsDropDown (View anchor)Since: API Level 1
Display the content view in a popup window anchored to the bottom-left corner of the anchor view. If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent scroll view can be scrolled, the bottom-left corner of the popup is pinned at the top left corner of the anchor view.
Parameters
See Alsopublic void showAtLocation (View parent, int gravity, int x, int y)
|
parent | a parent view to get the getWindowToken() token from |
---|---|
gravity | the gravity which controls the placement of the popup window |
x | the popup‘s x location offset |
y | the popup‘s y location offset |
Android英文文档翻译系列(4)——PopupWindow
标签:android style io ar sp for java on div
原文地址:http://www.cnblogs.com/bvin/p/4162422.html