Most visited


Recently visited


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

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.