public abstract class AbstractScrollableDialog extends AbstractListDialog implements ScrollableDialog
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScrollableDialog(android.content.Context context,
int themeResourceId)
Creates 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 |
onAttachDecorators(android.view.View view)
The method, which is invoked when the dialog's decorators should be attached.
|
protected void |
onDetachDecorators()
The method, which is invoked when the dialog's decorators should be detached.
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
android.os.Bundle |
onSaveInstanceState() |
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.
|
getItemColor, getListAdapter, getListView, setAdapter, setItemColor, setItems, setItems, setMultiChoiceItems, setMultiChoiceItems, setMultiChoiceItems, setOnItemSelectedListener, setSingleChoiceItems, setSingleChoiceItems, setSingleChoiceItemsareButtonsStacked, getButton, getButtonBarDividerColor, getButtonTextColor, isButtonBarDividerShown, setButtonBarDividerColor, setButtonTextColor, setNegativeButton, setNegativeButton, setNeutralButton, setNeutralButton, setPositiveButton, setPositiveButton, showButtonBarDivider, stackButtonsaddAllValidators, addValidator, getValidators, removeAllValidators, removeValidatorgetHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, onStart, onStop, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitleColor, setView, setViewaddContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenuclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCancelable, setOnCancelListener, setOnDismissListener, setOnShowListenergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitle, setTitleColor, setView, setViewgetContextgetHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDivideraddAllValidators, addValidator, getValidators, removeAllValidators, removeValidatorareButtonsStacked, getButton, getButtonBarDividerColor, getButtonTextColor, isButtonBarDividerShown, setButtonBarDividerColor, setButtonTextColor, setNegativeButton, setNegativeButton, setNeutralButton, setNeutralButton, setPositiveButton, setPositiveButton, showButtonBarDivider, stackButtonsgetItemColor, getListAdapter, getListView, setAdapter, setItemColor, setItems, setItems, setMultiChoiceItems, setMultiChoiceItems, setMultiChoiceItems, setOnItemSelectedListener, setSingleChoiceItems, setSingleChoiceItems, setSingleChoiceItemsprotected AbstractScrollableDialog(android.content.Context context,
int themeResourceId)
context - The context, which should be used by the dialog, as an instance of the class Context. The context may not be nullthemeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value. The resource id must correspond to a valid themepublic 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 android.os.Bundle onSaveInstanceState()
onSaveInstanceState in class AbstractListDialogpublic void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState in class AbstractListDialogprotected void onAttachDecorators(android.view.View view)
AbstractMaterialDialogonAttachDecorators in class AbstractListDialogview - The root view of the view hierarchy, which should be modified by the decorators, as
an instance of the class View. The view may not be nullprotected void onDetachDecorators()
AbstractMaterialDialogonDetachDecorators in class AbstractListDialog