OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
net.londatiga.android.CustomPopupWindow Class Reference
Inheritance diagram for net.londatiga.android.CustomPopupWindow:
net.londatiga.android.QuickAction

List of all members.

Public Member Functions

 CustomPopupWindow (View anchor)
void setBackgroundDrawable (Drawable background)
void setContentView (View root)
void setContentView (int layoutResID)
void setOnDismissListener (PopupWindow.OnDismissListener listener)
void showDropDown ()
void showDropDown (int xOffset, int yOffset)
void showLikeQuickAction ()
void showLikeQuickAction (int xOffset, int yOffset)
void dismiss ()

Protected Member Functions

void onCreate ()
void onShow ()
void preShow ()

Protected Attributes

final View anchor
final PopupWindow window
final WindowManager windowManager

Detailed Description

This class does most of the work of wrapping the PopupWindow so it's simpler to use. Edited by Lorensius. W. L. T

Author:
qberticus

Constructor & Destructor Documentation

Create a QuickAction

Parameters:
anchorthe view that the QuickAction will be displaying 'from'

Member Function Documentation

Anything you want to have happen when created. Probably should create a view and setup the event listeners on child views.

In case there is stuff to do right before displaying.

Sets the content view. Probably should be called from onCreate

Parameters:
rootthe view the popup will display

Will inflate and set the view from a resource id

Parameters:
layoutResID
void net.londatiga.android.CustomPopupWindow.setOnDismissListener ( PopupWindow.OnDismissListener  listener)

If you want to do anything when dismiss is called

Parameters:
listener

Displays like a popdown menu from the anchor view

void net.londatiga.android.CustomPopupWindow.showDropDown ( int  xOffset,
int  yOffset 
)

Displays like a popdown menu from the anchor view.

Parameters:
xOffsetoffset in X direction
yOffsetoffset in Y direction

Displays like a QuickAction from the anchor view.

void net.londatiga.android.CustomPopupWindow.showLikeQuickAction ( int  xOffset,
int  yOffset 
)

Displays like a QuickAction from the anchor view.

Parameters:
xOffsetoffset in the X direction
yOffsetoffset in the Y direction

Member Data Documentation

final PopupWindow net.londatiga.android.CustomPopupWindow.window [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines