public abstract static class ListPopupWindow.ForwardingListener
extends java.lang.Object
implements android.view.View.OnTouchListener
ListPopupWindow.| Constructor and Description |
|---|
ListPopupWindow.ForwardingListener(android.view.View src) |
| Modifier and Type | Method and Description |
|---|---|
abstract ListPopupWindow |
getPopup()
Returns the popup to which this listener is forwarding events.
|
protected boolean |
onForwardingStarted()
Called when forwarding would like to start.
|
protected boolean |
onForwardingStopped()
Called when forwarding would like to stop.
|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
public ListPopupWindow.ForwardingListener(android.view.View src)
public abstract ListPopupWindow getPopup()
Override this to return the correct popup. If the popup is displayed
asynchronously, you may also need to override
onForwardingStopped() to prevent premature cancelation of
forwarding.
public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
onTouch in interface android.view.View.OnTouchListenerprotected boolean onForwardingStarted()
By default, this will show the popup
returned by getPopup(). It may be overridden to perform another action, like
clicking the source view or preparing the popup before showing it.
protected boolean onForwardingStopped()
By default, this will dismiss the popup
returned by getPopup(). It may be overridden to perform some other action.