Since: API Level 2.5
public static interface

ActionInterfaces.Window.PopupWindowInterface

com.droidux.pack.action.interfaces.ActionInterfaces.Window.PopupWindowInterface
Known Indirect Subclasses

Class Overview

Represents the contracts to be implemented by widgets that use PopupWindow.

Summary

Public Methods
abstract void dismiss()
Dispose of the popup window.
abstract boolean isShowing()
Indicates whether the popup window is showing on screen.
abstract void show(View parent, int targetX, int targetY)
Display the content view in a popup window at the specified location.
abstract void show(View anchor)
Display the content view in a popup window anchored to the anchor view.

Public Methods

public abstract void dismiss ()

Since: API Level 2.5

Dispose of the popup window. If the popup window has not been shown, calling this method will have no effect.

public abstract boolean isShowing ()

Since: API Level 2.5

Indicates whether the popup window is showing on screen.

Returns
  • true if the popup is showing, false otherwise

public abstract void show (View parent, int targetX, int targetY)

Since: API Level 2.5

Display the content view in a popup window at the specified location.

Parameters
parent a parent view to get the getWindowToken() token from
targetX the popup x location. This should be a raw value. See MotionEvent.getRawX().
targetY the popup y location. This should be a raw value. See MotionEvent.getRawY().

public abstract void show (View anchor)

Since: API Level 2.5

Display the content view in a popup window anchored to the anchor view. The popup window can be displayed above or below the anchor view depends on the available space that can contain the window size.

Parameters
anchor The view which the window will be anchored to.