public static interface

PinnedHeaderListView.PinnedHeaderAdapter

com.android.contacts.PinnedHeaderListView.PinnedHeaderAdapter

Class Overview

Adapter interface. The list adapter must implement this interface.

Summary

Constants
int PINNED_HEADER_GONE Pinned header state: don't show the header.
int PINNED_HEADER_PUSHED_UP Pinned header state: show the header.
int PINNED_HEADER_VISIBLE Pinned header state: show the header at the top of the list.
Public Methods
abstract void configurePinnedHeader(View header, int position, int alpha)
Configures the pinned header view to match the first visible list item.
abstract int getPinnedHeaderState(int position)
Computes the desired state of the pinned header for the given position of the first visible list item.

Constants

public static final int PINNED_HEADER_GONE

Pinned header state: don't show the header.

Constant Value: 0 (0x00000000)

public static final int PINNED_HEADER_PUSHED_UP

Pinned header state: show the header. If the header extends beyond the bottom of the first shown element, push it up and clip.

Constant Value: 2 (0x00000002)

public static final int PINNED_HEADER_VISIBLE

Pinned header state: show the header at the top of the list.

Constant Value: 1 (0x00000001)

Public Methods

public abstract void configurePinnedHeader (View header, int position, int alpha)

Configures the pinned header view to match the first visible list item.

Parameters
header pinned header view.
position position of the first visible list item.
alpha fading of the header view, between 0 and 255.

public abstract int getPinnedHeaderState (int position)

Computes the desired state of the pinned header for the given position of the first visible list item. Allowed return values are PINNED_HEADER_GONE, PINNED_HEADER_VISIBLE or PINNED_HEADER_PUSHED_UP.