public class StickyHeaderBehavior extends ListViewBehavior
ListViewBehavior
that can be used to 'stick' the
last seen item header to the top of the list so that it remains visible after scrolls.Constructor and Description |
---|
StickyHeaderBehavior()
Creates a new instance of the
StickyHeaderBehavior class. |
Modifier and Type | Method and Description |
---|---|
void |
invalidate() |
void |
onAttached(RadListView listView)
Called when the behavior is attached to
RadListView with
addBehavior(ListViewBehavior). |
void |
onDetached(RadListView listView)
Called when the behavior is detached to
RadListView with
removeBehavior(ListViewBehavior). |
void |
onDispatchDraw(Canvas canvas)
Called when
RadListView 's onDispatchDraw method is called. |
void |
onScrolled(int dx,
int dy) |
bindViewHolder, createViewHolder, getItemViewType, isInProgress, managesViewHolders, onActionUpOrCancel, onFling, onInterceptTouchEvent, onLayout, onLongPress, onLongPressDrag, onLongPressDragEnded, onShortPressDrag, onTapUp
public StickyHeaderBehavior()
StickyHeaderBehavior
class.public void invalidate()
public void onAttached(RadListView listView)
ListViewBehavior
RadListView
with
addBehavior(ListViewBehavior).onAttached
in class ListViewBehavior
listView
- The parent list viewpublic void onDetached(RadListView listView)
ListViewBehavior
RadListView
with
removeBehavior(ListViewBehavior).onDetached
in class ListViewBehavior
listView
- The parent list viewpublic void onScrolled(int dx, int dy)
onScrolled
in class ListViewBehavior
public void onDispatchDraw(Canvas canvas)
ListViewBehavior
RadListView
's onDispatchDraw method is called.onDispatchDraw
in class ListViewBehavior
canvas
- the canvas on which to draw the view