Example usage for android.widget ExpandableListView PACKED_POSITION_VALUE_NULL

List of usage examples for android.widget ExpandableListView PACKED_POSITION_VALUE_NULL

Introduction

In this page you can find the example usage for android.widget ExpandableListView PACKED_POSITION_VALUE_NULL.

Prototype

long PACKED_POSITION_VALUE_NULL

To view the source code for android.widget ExpandableListView PACKED_POSITION_VALUE_NULL.

Click Source Link

Document

The value for a packed position that represents neither/null/no preference.

Usage

From source file:com.granita.tasks.TaskListFragment.java

@Override
public int canFling(ListView v, int pos) {
    long packedPos = mExpandableListView.getExpandableListPosition(pos);
    if (packedPos != ExpandableListView.PACKED_POSITION_VALUE_NULL && ExpandableListView
            .getPackedPositionType(packedPos) == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {
        return FlingDetector.RIGHT_FLING | FlingDetector.LEFT_FLING;
    } else {//from w w  w. j  a  v a 2s  .c  o  m
        return 0;
    }
}