|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drismo.gui.quickaction.CustomPopupWindow
com.drismo.gui.quickaction.QuickAction
public class QuickAction
Popup window, shows action list as icon and text (QuickContact / Twitter app).
Field Summary | |
---|---|
private java.util.ArrayList<ActionItem> |
actionList
|
static int |
ANIM_AUTO
|
static int |
ANIM_GROW_FROM_CENTER
|
static int |
ANIM_GROW_FROM_LEFT
|
static int |
ANIM_GROW_FROM_RIGHT
|
private boolean |
animateTrack
|
private int |
animStyle
|
private android.content.Context |
context
|
private android.view.LayoutInflater |
inflater
|
private android.widget.ImageView |
mArrowDown
|
private android.widget.ImageView |
mArrowUp
|
private android.view.ViewGroup |
mTrack
|
private android.view.View |
root
|
Fields inherited from class com.drismo.gui.quickaction.CustomPopupWindow |
---|
anchor, window, windowManager |
Constructor Summary | |
---|---|
QuickAction(android.view.View anchor)
Constructor |
Method Summary | |
---|---|
void |
addActionItem(ActionItem action)
Add action item |
void |
animateTrack(boolean animateTrack)
Animate track |
private void |
createActionList()
Create action list |
private android.view.View |
getActionItem(java.lang.String title,
android.graphics.drawable.Drawable icon,
android.view.View.OnClickListener listener)
Get action item View |
private void |
setAnimationStyle(int screenWidth,
int requestedX,
boolean onTop)
Set animation style |
void |
setAnimStyle(int animStyle)
Set animation style |
void |
show()
Show popup window |
private void |
showArrow(int whichArrow,
int requestedX)
Show arrow |
Methods inherited from class com.drismo.gui.quickaction.CustomPopupWindow |
---|
dismiss, onCreate, onShow, preShow, setBackgroundDrawable, setContentView, setContentView, setOnDismissListener, showDropDown, showDropDown, showLikeQuickAction, showLikeQuickAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final android.view.View root
private final android.widget.ImageView mArrowUp
private final android.widget.ImageView mArrowDown
private final android.view.LayoutInflater inflater
private final android.content.Context context
public static final int ANIM_GROW_FROM_LEFT
public static final int ANIM_GROW_FROM_RIGHT
public static final int ANIM_GROW_FROM_CENTER
public static final int ANIM_AUTO
private int animStyle
private boolean animateTrack
private android.view.ViewGroup mTrack
private java.util.ArrayList<ActionItem> actionList
Constructor Detail |
---|
public QuickAction(android.view.View anchor)
anchor
- View
on where the popup should be displayedMethod Detail |
---|
public void animateTrack(boolean animateTrack)
animateTrack
- flag to animate trackpublic void setAnimStyle(int animStyle)
animStyle
- animation style, default is set to ANIM_AUTOpublic void addActionItem(ActionItem action)
action
- ActionItem
public void show()
private void setAnimationStyle(int screenWidth, int requestedX, boolean onTop)
screenWidth
- Screen widthrequestedX
- distance from left screenonTop
- flag to indicate where the popup should be displayed. Set TRUE if displayed on top of anchor and vice versaprivate void createActionList()
private android.view.View getActionItem(java.lang.String title, android.graphics.drawable.Drawable icon, android.view.View.OnClickListener listener)
View
title
- action item titleicon
- Drawable
action item iconlistener
- View.OnClickListener
action item listener
View
private void showArrow(int whichArrow, int requestedX)
whichArrow
- arrow type resource idrequestedX
- distance from left screen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |