Most visited

Recently visited

ViewCompat

public class ViewCompat
extends ViewCompat

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


Helper用于访问在向后兼容的API级别13之后引入的 View功能。

Summary

Inherited constants

From class android.support.v4.view.ViewCompat

Public methods

static void cancelDragAndDrop(View v)

取消拖放操作。

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

开始拖放操作。

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

在拖放过程中更新拖动阴影。

Inherited methods

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

Public methods

cancelDragAndDrop

void cancelDragAndDrop (View v)

取消拖放操作。

Parameters
v View

startDragAndDrop

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

开始拖放操作。

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

updateDragShadow

void updateDragShadow (View v, 
                View.DragShadowBuilder shadowBuilder)

在拖放过程中更新拖动阴影。

Parameters
v View
shadowBuilder View.DragShadowBuilder

Hooray!