|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPopupWindow
com.devoteam.quickaction.QuickActionWindow
public class QuickActionWindow
A class that can display, as a popup badge, a collection of QuickActionItems Based on the great work done by Mohd Faruq
Constructor Summary | |
---|---|
QuickActionWindow(Context context,
View pView,
Rect rect)
Creates a new Instance of the QuickActionWindow |
Method Summary | |
---|---|
void |
addItem(Drawable drawable,
int resid,
OnClickListener l)
Adds an item to the QuickActionWindow |
void |
addItem(Drawable drawable,
java.lang.String text,
OnClickListener l)
Adds an item to the QuickActionWindow |
void |
addItem(int drawable,
int resid,
OnClickListener l)
Adds an item to the QuickActionWindow |
void |
addItem(int drawable,
java.lang.String text,
OnClickListener l)
Adds an item to the QuickActionWindow |
boolean |
onKeyDown(int keyCode,
KeyEvent event)
|
boolean |
onKeyLongPress(int keyCode,
KeyEvent event)
|
boolean |
onKeyMultiple(int keyCode,
int count,
KeyEvent event)
|
boolean |
onKeyUp(int keyCode,
KeyEvent event)
|
void |
show()
Shows the quick actions window |
void |
show(int requestedX)
Shows the quick actions window |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickActionWindow(Context context, View pView, Rect rect)
context
- Context to use, usually your Appication or your ActivitypView
- The view you want to anchor the window on (the parent)rect
- Rectangle defining the view areaMethod Detail |
---|
public void addItem(Drawable drawable, java.lang.String text, OnClickListener l)
drawable
- Icon to be showntext
- Label to be shown below the drawablel
- Definition for the callback to be invoked when the view is clikedpublic void addItem(int drawable, java.lang.String text, OnClickListener l)
drawable
- Icon resource id to be showntext
- Label to be shown below the drawablel
- Definition for the callback to be invoked when the view is clikedpublic void addItem(Drawable drawable, int resid, OnClickListener l)
drawable
- Icon to be showntext
- Label resource id to be shown below the drawablel
- Definition for the callback to be invoked when the view is clikedpublic void addItem(int drawable, int resid, OnClickListener l)
drawable
- Icon resource id to be showntext
- Label resource id to be shown below the drawablel
- Definition for the callback to be invoked when the view is clikedpublic void show(int requestedX)
requestedX
- The X coordinate the arrow will point atpublic void show()
public boolean onKeyUp(int keyCode, KeyEvent event)
public boolean onKeyDown(int keyCode, KeyEvent event)
public boolean onKeyMultiple(int keyCode, int count, KeyEvent event)
public boolean onKeyLongPress(int keyCode, KeyEvent event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |