public class Popup extends Object
| Modifier and Type | Field and Description |
|---|---|
Annotation |
annotation |
int |
offsetX |
int |
offsetY |
| Constructor and Description |
|---|
Popup(android.view.ViewGroup parent,
android.view.View view,
int popupWidth,
int popupHeight)
This is the class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss()
The function is used to dismiss the popup
|
void |
setScreenLocked(boolean screenLocked)
The function is used to lock the popup not beyond the bound of screen.
|
void |
setVisibility(int visibility)
The function is used to specify the visibility of popup.
|
void |
show(int[] screenLoc)
The function is used to show the popup
|
void |
update(int[] screenLoc)
The function is used to update the position of the popup
|
public int offsetX
public int offsetY
public Annotation annotation
public Popup(android.view.ViewGroup parent,
android.view.View view,
int popupWidth,
int popupHeight)
parent - the container to put this popup.view - the native popup object. It can be a TextView/Menu..etc.popupWidth - the width of the popup you want to specify.popupHeight - the height of the popup you want to specify.public void show(int[] screenLoc)
screenLoc - the position of the popup you want to show.public void update(int[] screenLoc)
screenLoc - the position of the popup you want to update.public void dismiss()
public void setScreenLocked(boolean screenLocked)
screenLocked - true is to lock the popup, false is free lock the popuppublic void setVisibility(int visibility)
visibility - View.VISIBLE is to make the popup visible, View.GONE is to make the popup invisible.