public class

DragSortItemView

extends ViewGroup
implements Checkable
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.mobeta.android.dslv.DragSortItemView

Class Overview

Lightweight ViewGroup that wraps list items obtained from user's ListAdapter. ItemView expects a single child that has a definite height (i.e. the child's layout height is not MATCH_PARENT). The width of ItemView will always match the width of its child (that is, the width MeasureSpec given to ItemView is passed directly to the child, and the ItemView measured width is set to the child's measured width). The height of ItemView can be anything; the The purpose of this class is to optimize slide shuffle animations.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
DragSortItemView(Context context)
Public Methods
int getGravity()
boolean isChecked()
void setChecked(boolean checked)
void setGravity(int gravity)
void toggle()
Protected Methods
void onLayout(boolean changed, int left, int top, int right, int bottom)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.Checkable

Public Constructors

public DragSortItemView (Context context)

Public Methods

public int getGravity ()

public boolean isChecked ()

public void setChecked (boolean checked)

public void setGravity (int gravity)

public void toggle ()

Protected Methods

protected void onLayout (boolean changed, int left, int top, int right, int bottom)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)