com.android.contacts.PinnedHeaderListView.PinnedHeaderAdapter |
Adapter interface. The list adapter must implement this interface.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configures the pinned header view to match the first visible list item.
| |||||||||||
Computes the desired state of the pinned header for the given
position of the first visible list item.
|
Pinned header state: don't show the header.
Pinned header state: show the header. If the header extends beyond the bottom of the first shown element, push it up and clip.
Pinned header state: show the header at the top of the list.
Configures the pinned header view to match the first visible list item.
header | pinned header view. |
---|---|
position | position of the first visible list item. |
alpha | fading of the header view, between 0 and 255. |
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
.