public class

PopupBubbleWindow

extends Object
java.lang.Object
   ↳ com.htc.widget.internal.PopupBubbleWindow

Class Overview

A popup window that can be used to display an arbitrary view. The popup windows is a floating container that appears on top of the current activity.

Summary

Nested Classes
interface PopupBubbleWindow.OnDismissListener Listener that is called when this popup window is dismissed. 
Public Constructors
PopupBubbleWindow(Context context)

Create a new empty, non focusable popup window of dimension (0,0).

PopupBubbleWindow(Context context, AttributeSet attrs)

Create a new empty, non focusable popup window of dimension (0,0).

PopupBubbleWindow(Context context, AttributeSet attrs, int defStyle)

Create a new empty, non focusable popup window of dimension (0,0).

PopupBubbleWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Create a new, empty, non focusable popup window of dimension (0,0).

PopupBubbleWindow()

Create a new empty, non focusable popup window of dimension (0,0).

PopupBubbleWindow(View contentView)

Create a new non focusable popup window which can display the contentView.

PopupBubbleWindow(int width, int height)

Create a new empty, non focusable popup window.

PopupBubbleWindow(View contentView, int width, int height)

Create a new non focusable popup window which can display the contentView.

PopupBubbleWindow(View contentView, int width, int height, boolean focusable)

Create a new popup window which can display the contentView.

Public Methods
void update(int x, int y, int width, int height)

Updates the position and the dimension of the popup window.

void update(int x, int y, int width, int height, boolean force)

Updates the position and the dimension of the popup window.

void update(View anchor, int xoff, int yoff, int width, int height)

Updates the position and the dimension of the popup window.

void update(View anchor, int width, int height)

Updates the position and the dimension of the popup window.

void update(int width, int height)

Updates the dimension of the popup window.

[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupBubbleWindow (Context context)

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

public PopupBubbleWindow (Context context, AttributeSet attrs)

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

public PopupBubbleWindow (Context context, AttributeSet attrs, int defStyle)

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

public PopupBubbleWindow (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.

public PopupBubbleWindow ()

Create a new empty, non focusable popup window of dimension (0,0).

The popup does not provide any background. This should be handled by the content view.

public PopupBubbleWindow (View contentView)

Create a new non focusable popup window which can display the contentView. The dimension of the window are (0,0).

The popup does not provide any background. This should be handled by the content view.

Parameters
contentView the popup's content

public PopupBubbleWindow (int width, int height)

Create a new empty, non focusable popup window. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Parameters
width the popup's width
height the popup's height

public PopupBubbleWindow (View contentView, int width, int height)

Create a new non focusable popup window which can display the contentView. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Parameters
contentView the popup's content
width the popup's width
height the popup's height

public PopupBubbleWindow (View contentView, int width, int height, boolean focusable)

Create a new popup window which can display the contentView. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Parameters
contentView the popup's content
width the popup's width
height the popup's height
focusable true if the popup can be focused, false otherwise

Public Methods

public void update (int x, int y, int width, int height)

Updates the position and the dimension of the popup window. Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

Parameters
x the new x location
y the new y location
width the new width, can be -1 to ignore
height the new height, can be -1 to ignore

public void update (int x, int y, int width, int height, boolean force)

Updates the position and the dimension of the popup window. Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

Parameters
x the new x location
y the new y location
width the new width, can be -1 to ignore
height the new height, can be -1 to ignore
force reposition the window even if the specified position already seems to correspond to the LayoutParams

public void update (View anchor, int xoff, int yoff, int width, int height)

Updates the position and the dimension of the popup window. Width and height can be set to -1 to update location only. Calling this function also updates the window with the current popup state as described for #update().

If the view later scrolls to move anchor to a different location, the popup will be moved correspondingly.

Parameters
anchor the popup's anchor view
xoff x offset from the view's left edge
yoff y offset from the view's bottom edge
width the new width, can be -1 to ignore
height the new height, can be -1 to ignore

public void update (View anchor, int width, int height)

Updates the position and the dimension of the popup window. Calling this function also updates the window with the current popup state as described for #update().

Parameters
anchor the popup's anchor view
width the new width, can be -1 to ignore
height the new height, can be -1 to ignore

public void update (int width, int height)

Updates the dimension of the popup window. Calling this function also updates the window with the current popup state as described for #update().

Parameters
width the new width
height the new height