View.OnDragListener
  public
  static
  
  
  interface
  View.OnDragListener
  
  
  
| android.view.View.OnDragListener | 
Interface definition for a listener that's invoked when a drag event is dispatched to this
 view. The listener is invoked before the view's own
 View.onDragEvent(android.view.DragEvent) method. To fall back to the view's
 onDragEvent(DragEvent) behavior, return false from the listener method.
 
Developer Guides
For a guide to implementing drag and drop features, see the Drag and drop developer guide.
Summary
Public methods | |
|---|---|
        abstract
        
        
        
        
        boolean
     | 
  
    
      
      onDrag(View v, DragEvent event)
      
      
        Called when a drag event is dispatched to a view.  | 
  
Public methods
onDrag
public abstract boolean onDrag (View v, DragEvent event)
Called when a drag event is dispatched to a view. Enables listeners to override the
 base behavior provided by View.onDragEvent(android.view.DragEvent).
| Parameters | |
|---|---|
v | 
        
          View: The View that received the drag event. | 
      
event | 
        
          DragEvent: The event object for the drag event. | 
      
| Returns | |
|---|---|
boolean | 
        true if the drag event was handled successfully; false, if the
   drag event was not handled. Note: A false return value triggers the
   view's View.onDragEvent(android.view.DragEvent) handler. |