public class ScrollableDialogDecorator extends AbstractDialogDecorator<ListDialog> implements ScrollableDialogDecorator, android.widget.AbsListView.OnScrollListener
| Constructor and Description |
|---|
ScrollableDialogDecorator(ListDialog dialog)
Creates a new decorator, which allows to modify the view hierarchy of a dialog, which is
designed according to Android 5's Material Design guidelines even on pre-Lollipop devices and
may contain a scrollable content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areDividersShownOnScroll()
Returns, whether dividers, which are located above and below the dialog's content, are shown,
when the content is scrolled, or not.
|
protected void |
onAttach(android.view.View view)
The method, which is invoked, when the decorator is attached to the view hierarchy.
|
protected void |
onDetach()
The method, which is invoked, when the decorator is detached from the view hierarchy.
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState)
The method, which is invoked in order to restore the state, which has previously stored
within a bundle.
|
void |
onSaveInstanceState(android.os.Bundle outState)
The method, which is invoked in order to stores the decorator's state.
|
void |
onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount) |
void |
onScrollStateChanged(android.widget.AbsListView view,
int scrollState) |
void |
showDividersOnScroll(boolean show)
Sets, whether dividers, which are located above and below the dialog's content, should be
shown, when the content is scrolled, or not.
|
attach, detach, getContext, getDialog, getViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic ScrollableDialogDecorator(ListDialog dialog)
dialog - The dialog, whose view hierarchy should be modified by the dialog, as an instance of
the type ButtonBarDialog. The dialog may not be nullpublic final boolean areDividersShownOnScroll()
ScrollableDialogDecoratorareDividersShownOnScroll in interface ScrollableDialogDecoratorpublic final void showDividersOnScroll(boolean show)
ScrollableDialogDecoratorshowDividersOnScroll in interface ScrollableDialogDecoratorshow - True, if the dividers, which are located above and below the dialog's content, should
be shown, when the content is scrolled, false otherwisepublic final void onScrollStateChanged(android.widget.AbsListView view,
int scrollState)
onScrollStateChanged in interface android.widget.AbsListView.OnScrollListenerpublic final void onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
onScroll in interface android.widget.AbsListView.OnScrollListenerpublic final void onSaveInstanceState(android.os.Bundle outState)
DialogDecoratoronSaveInstanceState in interface DialogDecoratoroutState - The bundle, the decorator's state should be stored within, as an instance of the
class Bundle. The bundle may not be nullpublic final void onRestoreInstanceState(android.os.Bundle savedInstanceState)
DialogDecoratoronRestoreInstanceState in interface DialogDecoratorsavedInstanceState - The bundle, which has been used to store the state, as an instance of the class
Bundle. The bundle may not be nullprotected final void onAttach(android.view.View view)
AbstractDialogDecoratoronAttach in class AbstractDialogDecorator<ListDialog>view - The root view of the dialog, which is modified by the decorator, as an instance of
the class View. The view may not be nullprotected final void onDetach()
AbstractDialogDecoratoronDetach in class AbstractDialogDecorator<ListDialog>