Skip to content

Most visited

Recently visited

navigation

ViewCompat

public class ViewCompat
extends ViewCompat

java.lang.Object
   ↳ android.support.v4.view.ViewCompat
     ↳ android.support.v13.view.ViewCompat


Helper for accessing features in View introduced after API level 13 in a backwards compatible fashion.

Summary

Inherited constants

From class android.support.v4.view.ViewCompat

Public methods

static void cancelDragAndDrop(View v)

Cancel the drag and drop operation.

static boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder, Object localState, int flags)

Start the drag and drop operation.

static void updateDragShadow(View v, View.DragShadowBuilder shadowBuilder)

Update the drag shadow while drag and drop is in progress.

Inherited methods

From class android.support.v4.view.ViewCompat
From class java.lang.Object

Public methods

cancelDragAndDrop

void cancelDragAndDrop (View v)

Cancel the drag and drop operation.

Parameters
v View

startDragAndDrop

boolean startDragAndDrop (View v, 
                ClipData data, 
                View.DragShadowBuilder shadowBuilder, 
                Object localState, 
                int flags)

Start the drag and drop operation.

Parameters
v View
data ClipData
shadowBuilder View.DragShadowBuilder
localState Object
flags int
Returns
boolean

updateDragShadow

void updateDragShadow (View v, 
                View.DragShadowBuilder shadowBuilder)

Update the drag shadow while drag and drop is in progress.

Parameters
v View
shadowBuilder View.DragShadowBuilder
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.