Example usage for Java android.widget PopupWindow fields, constructors, methods, implement or subclass
The text is from its open source code.
int | INPUT_METHOD_NEEDED Mode for #setInputMethodMode(int) : this popup always needs to work with an input method, regardless of whether it is focusable. |
int | INPUT_METHOD_NOT_NEEDED Mode for #setInputMethodMode(int) : this popup never needs to work with an input method, regardless of whether it is focusable. |
PopupWindow(Context context, AttributeSet attrs, int defStyleAttr) Create a new empty, non focusable popup window of dimension (0,0). The popup does provide a background. | |
PopupWindow(View contentView, int width, int height) Create a new non focusable popup window which can display the contentView. | |
PopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) Create a new, empty, non focusable popup window of dimension (0,0). The popup does not provide a background. | |
PopupWindow(View contentView, int width, int height, boolean focusable) Create a new popup window which can display the contentView. | |
PopupWindow(Context context) Create a new empty, non focusable popup window of dimension (0,0). The popup does provide a background. | |
PopupWindow(View contentView) Create a new non focusable popup window which can display the contentView. | |
PopupWindow(Context context, AttributeSet attrs) Create a new empty, non focusable popup window of dimension (0,0). The popup does provide a background. | |
PopupWindow(int width, int height) Create a new empty, non focusable popup window. | |
PopupWindow() Create a new empty, non focusable popup window of dimension (0,0). The popup does not provide any background. |
void | dismiss() Disposes of the popup window. |
View | getContentView() Return the view used as the content of the popup window. |
int | getHeight() Returns the popup's requested height. |
int | getWidth() Returns the popup's requested width. |
boolean | isShowing() Indicate whether this popup window is showing on screen. |
void | setAnimationStyle(int animationStyle) Change the animation style resource for this popup. 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 #update() methods. |
void | setAttachedInDecor(boolean enabled) This will attach the popup window to the decor frame of the parent window to avoid overlaping with screen decorations like the navigation bar. |
void | setBackgroundDrawable(Drawable background) Specifies the background drawable for this popup window. |
void | setContentView(View contentView) Change the popup's content. |
void | setFocusable(boolean focusable) Changes the focusability of the popup window. |
void | setHeight(int height) Sets the popup's requested height. |
void | setIgnoreCheekPress() Set the flag on popup to ignore cheek press events; by default this flag is set to false which means the popup will not ignore cheek press dispatch events. |
void | setInputMethodMode(int mode) Control how the popup operates with an input method: one of #INPUT_METHOD_FROM_FOCUSABLE , #INPUT_METHOD_NEEDED , or #INPUT_METHOD_NOT_NEEDED . |
void | setOnDismissListener(OnDismissListener onDismissListener) Sets the listener to be called when the window is dismissed. |
void | setOutsideTouchable(boolean touchable) Controls whether the pop-up will be informed of touch events outside of its window. |
void | setSplitTouchEnabled(boolean enabled) Allows the popup window to split touches across other windows that also support split touch. |
void | setTouchable(boolean touchable) Changes the touchability of the popup window. |
void | setTouchInterceptor(OnTouchListener l) Set a callback for all touch events being dispatched to the popup window. |
void | setWidth(int width) Sets the popup's requested width. |
void | setWindowLayoutMode(int widthSpec, int heightSpec) Change the width and height measure specs that are given to the window manager by the popup. |
void | showAsDropDown(View anchor) Display the content view in a popup window anchored to the bottom-left corner of the anchor view. |
void | showAsDropDown(View anchor, int xoff, int yoff) 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. |
void | showAsDropDown(View anchor, int xoff, int yoff, int gravity) Displays the content view in a popup window anchored to the corner of another view. |
void | showAtLocation(View parent, int gravity, int x, int y) Display the content view in a popup window at the specified location. |
void | showAtLocation(IBinder token, int gravity, int x, int y) Display the content view in a popup window at the specified location. |
void | update() Updates the state of the popup window, if it is currently being displayed, from the currently set state. |
void | update(int x, int y, int width, int height) Updates the position and the dimension of the popup window. |