diff --git a/doc/javadoc/allclasses-frame.html b/doc/javadoc/allclasses-frame.html deleted file mode 100644 index 011053f..0000000 --- a/doc/javadoc/allclasses-frame.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -
- -Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
-public static final java.lang.String |
-EXTRA_BACK_BUTTON_TEXT |
-"extra_prefs_set_back_text" |
-
-
-public static final java.lang.String |
-EXTRA_FINISH_BUTTON_TEXT |
-"extra_prefs_set_finish_text" |
-
-
-public static final java.lang.String |
-EXTRA_HIDE_NAVIGATION |
-":android:no_headers" |
-
-
-public static final java.lang.String |
-EXTRA_NEXT_BUTTON_TEXT |
-"extra_prefs_set_next_text" |
-
-
-public static final java.lang.String |
-EXTRA_NO_BREAD_CRUMBS |
-":extra_prefs_no_bread_crumbs" |
-
-
-public static final java.lang.String |
-EXTRA_PROGRESS_FORMAT |
-"extra_prefs_progress_format" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_BUTTON_BAR |
-"extra_prefs_show_button_bar" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_FRAGMENT |
-":android:show_fragment" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_FRAGMENT_ARGUMENTS |
-":android:show_fragment_args" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_FRAGMENT_TITLE |
-":android:show_fragment_title" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_PROGRESS |
-"extra_prefs_show_progress" |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
-public static final java.lang.String |
-EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT |
-"extra_prefs_restore_defaults_button_text" |
-
-
-public static final java.lang.String |
-EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON |
-"extra_prefs_show_restore_defaults_button" |
-
public interface NavigationListener
-NavigationPreference
s are
- added or removed to/from a PreferenceActivity
, must implement.Modifier and Type | -Method and Description | -
---|---|
void |
-onNavigationPreferenceAdded(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been added.
- |
-
void |
-onNavigationPreferenceRemoved(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been removed.
- |
-
void onNavigationPreferenceAdded(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which has been added, as an instance of the class NavigationPreference
. The navigation preference may not be nullvoid onNavigationPreferenceRemoved(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which has been removed, as an instance of the class NavigationPreference
. The navigation preference may not be nullpublic static interface NavigationPreference.Callback
-Modifier and Type | -Method and Description | -
---|---|
void |
-onShowFragment(NavigationPreference navigationPreference)
-The method, which is invoked, when the fragment, which is associated with a specific
- navigation preference, should be shown.
- |
-
void onShowFragment(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, whose fragment should be shown, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullpublic static class NavigationPreference.SavedState
-extends de.mrapp.android.util.view.AbstractSavedState
-NavigationPreference
.android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
Modifier and Type | -Field and Description | -
---|---|
static android.os.Parcelable.Creator<NavigationPreference.SavedState> |
-CREATOR
-A creator, which allows to create instances of the class
-NavigationPreference.SavedState from
- parcels. |
-
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | -Method and Description | -
---|---|
void |
-writeToParcel(android.os.Parcel dest,
- int flags) |
-
describeContents, getSuperState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final android.os.Parcelable.Creator<NavigationPreference.SavedState> CREATOR-
NavigationPreference.SavedState
from
- parcels.public class NavigationPreference
-extends android.support.v7.preference.Preference
-PreferenceActivity
when clicked.Modifier and Type | -Class and Description | -
---|---|
static interface |
-NavigationPreference.Callback
-Defines the callback, a class, which should be notified, when the fragment, which is
- associated with a navigation preference, should be shown, must implement.
- |
-
static class |
-NavigationPreference.SavedState
-A data structure, which allows to save the internal state of a
-NavigationPreference . |
-
android.support.v7.preference.Preference.BaseSavedState, android.support.v7.preference.Preference.OnPreferenceChangeListener, android.support.v7.preference.Preference.OnPreferenceClickListener
DEFAULT_ORDER
Constructor and Description | -
---|
NavigationPreference(android.content.Context context)
-Creates a new preference, which allows to show a preference screen within a
-PreferenceActivity when clicked. |
-
NavigationPreference(android.content.Context context,
- android.util.AttributeSet attributeSet)
-Creates a new preference, which allows to show a preference screen within a
-PreferenceActivity when clicked. |
-
NavigationPreference(android.content.Context context,
- android.util.AttributeSet attributeSet,
- int defaultStyle)
-Creates a new preference, which allows to show a preference screen within a
-PreferenceActivity when clicked. |
-
NavigationPreference(android.content.Context context,
- android.util.AttributeSet attributeSet,
- int defaultStyle,
- int defaultStyleResource)
-Creates a new preference, which allows to show a preference screen within a
-PreferenceActivity when clicked. |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.CharSequence |
-getBreadCrumbTitle()
-Returns the breadcrumb title, which is shown, when showing the fragment, which is associated
- with the preference.
- |
-
android.os.Bundle |
-getExtras()
-Returns the arguments, which are passed to the fragment, which is associated with the
- preference.
- |
-
java.lang.String |
-getFragment()
-Returns the fully classified class name of the fragment, which is associated with the
- preference.
- |
-
android.content.res.ColorStateList |
-getIconTintList()
-Returns the color state list, which is used to tint the preference's icon.
- |
-
android.graphics.PorterDuff.Mode |
-getIconTintMode()
-Returns the mode, which is used to tint the preference's icon.
- |
-
protected void |
-onRestoreInstanceState(android.os.Parcelable state) |
-
protected android.os.Parcelable |
-onSaveInstanceState() |
-
void |
-performClick()
-Performs a click on the preference.
- |
-
void |
-setBreadCrumbTitle(java.lang.CharSequence breadCrumbTitle)
-Sets the breadcrumb title, which should be shown, when showing the fragment, which is
- associated with the preference.
- |
-
void |
-setBreadCrumbTitle(int resourceId)
-Sets the breadcrumb title, which should be shown, when showing the fragment, which is
- associated with the preference.
- |
-
void |
-setCallback(NavigationPreference.Callback callback)
-Sets the callback, which should be notified, when the fragment, which is associated with the
- preference, should be shown.
- |
-
void |
-setExtras(android.os.Bundle extras)
-Sets the argument, which should be passed to the fragment, which is associated with the
- preference.
- |
-
void |
-setFragment(java.lang.String fragment)
-Sets the fully classified class name of the fragment, which should be associated with the
- preference.
- |
-
void |
-setIcon(android.graphics.drawable.Drawable icon) |
-
void |
-setIconTint(int color)
-Sets the color, which should be used to tint the preference's icon.
- |
-
void |
-setIconTintList(android.content.res.ColorStateList tintList)
-Sets the color state list, which should be used to tint the preference's icon.
- |
-
void |
-setIconTintMode(android.graphics.PorterDuff.Mode tintMode)
-Sets the mode, which should be used to tint the preference's icon.
- |
-
void |
-setOnPreferenceClickListener(android.support.v7.preference.Preference.OnPreferenceClickListener listener) |
-
callChangeListener, clearWasDetached, compareTo, findPreferenceInHierarchy, getContext, getDependency, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getParent, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPersistedStringSet, getPreferenceDataStore, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getWidgetLayoutResource, hasKey, isEnabled, isIconSpaceReserved, isPersistent, isSelectable, isSingleLineTitle, isVisible, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttached, onAttachedToHierarchy, onAttachedToHierarchy, onBindViewHolder, onClick, onDependencyChanged, onDetached, onGetDefaultValue, onInitializeAccessibilityNodeInfo, onParentChanged, onPrepareForRemoval, onSetInitialValue, peekExtras, performClick, persistBoolean, persistFloat, persistInt, persistLong, persistString, persistStringSet, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setIcon, setIconSpaceReserved, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOrder, setPersistent, setPreferenceDataStore, setSelectable, setShouldDisableView, setSingleLineTitle, setSummary, setSummary, setTitle, setTitle, setViewId, setVisible, setWidgetLayoutResource, shouldDisableDependents, shouldPersist, toString, wasDetached
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public NavigationPreference(@NonNull - android.content.Context context)-
PreferenceActivity
when clicked.context
- The context, which should be used by the preference, as an instance of the class
- Context
. The context may not be nullpublic NavigationPreference(@NonNull - android.content.Context context, - @Nullable - android.util.AttributeSet attributeSet)-
PreferenceActivity
when clicked.context
- The context, which should be used by the preference, as an instance of the class
- Context
. The context may not be nullattributeSet
- The attributes of the XML tag that is inflating the preference, as an instance of the
- type AttributeSet
or null, if no attributes are availablepublic NavigationPreference(@NonNull - android.content.Context context, - @Nullable - android.util.AttributeSet attributeSet, - @AttrRes - int defaultStyle)-
PreferenceActivity
when clicked.context
- The context, which should be used by the preference, as an instance of the class
- Context
. The context may not be nullattributeSet
- The attributes of the XML tag that is inflating the preference, as an instance of the
- type AttributeSet
or null, if no attributes are availabledefaultStyle
- The default style to apply to this preference. If 0, no style will be applied (beyond
- what is included in the theme). This may either be an attribute resource, whose value
- will be retrieved from the current theme, or an explicit style resourcepublic NavigationPreference(@NonNull - android.content.Context context, - @Nullable - android.util.AttributeSet attributeSet, - @AttrRes - int defaultStyle, - @StyleRes - int defaultStyleResource)-
PreferenceActivity
when clicked.context
- The context, which should be used by the preference, as an instance of the class
- Context
. The context may not be nullattributeSet
- The attributes of the XML tag that is inflating the preference, as an instance of the
- type AttributeSet
or null, if no attributes are availabledefaultStyle
- The default style to apply to this preference. If 0, no style will be applied (beyond
- what is included in the theme). This may either be an attribute resource, whose value
- will be retrieved from the current theme, or an explicit style resourcedefaultStyleResource
- A resource identifier of a style resource that supplies default values for the
- preference, used only if the default style is 0 or can not be found in the theme. Can
- be 0 to not look for defaultspublic final void setCallback(@Nullable - NavigationPreference.Callback callback)-
callback
- The callback, which should be set, as an instance of the type NavigationPreference.Callback
or
- null, if no callback should be notifiedpublic final void performClick()-
performClick
in class android.support.v7.preference.Preference
@Nullable -public final java.lang.CharSequence getBreadCrumbTitle()-
CharSequence
or null, if no
- breadcrumb title is availablepublic final void setBreadCrumbTitle(@StringRes - int resourceId)-
resourceId
- The resource id of the breadcrumb title, which should be set, as an Integer
- value. The resource id must correspond to a valid string resourcepublic final void setBreadCrumbTitle(@Nullable - java.lang.CharSequence breadCrumbTitle)-
breadCrumbTitle
- The breadcrumb title, which should be set, as an instance of the type CharSequence
or null, if no breadcrumb title should be set@Nullable -public final java.lang.String getFragment()-
getFragment
in class android.support.v7.preference.Preference
String
or null, if no fragment is associated with the preferencepublic final void setFragment(@Nullable - java.lang.String fragment)-
setFragment
in class android.support.v7.preference.Preference
fragment
- The fully classified class name of the fragment, which should be set, as a String
or null, if no fragment should be set@Nullable -public final android.os.Bundle getExtras()-
getExtras
in class android.support.v7.preference.Preference
Bundle
or null, if no arguments are passed to
- the fragmentpublic final void setExtras(@Nullable - android.os.Bundle extras)-
extras
- The arguments, which should be set, as an instance of the class Bundle
or
- null, if no arguments should be passed to the fragmentpublic final android.content.res.ColorStateList getIconTintList()-
ColorStateList
or null, if no color state list has been setpublic final void setIconTint(int color)-
color
- The color, which should be set, as an Integer
valuepublic final void setIconTintList(@Nullable - android.content.res.ColorStateList tintList)-
tintList
- The color state list, which should be set, as an instance of the class ColorStateList
or null, if no color state list should be set@NonNull -public final android.graphics.PorterDuff.Mode getIconTintMode()-
PorterDuff.Mode
. The mode may not be nullpublic final void setIconTintMode(@NonNull - android.graphics.PorterDuff.Mode tintMode)-
tintMode
- The mode, which should be set, as a value of the enum PorterDuff.Mode
. The
- mode may not be nullpublic void setIcon(android.graphics.drawable.Drawable icon)-
setIcon
in class android.support.v7.preference.Preference
public final void setOnPreferenceClickListener(@Nullable - android.support.v7.preference.Preference.OnPreferenceClickListener listener)-
setOnPreferenceClickListener
in class android.support.v7.preference.Preference
protected final android.os.Parcelable onSaveInstanceState()-
onSaveInstanceState
in class android.support.v7.preference.Preference
protected final void onRestoreInstanceState(android.os.Parcelable state)-
onRestoreInstanceState
in class android.support.v7.preference.Preference
public abstract class PreferenceActivity -extends android.support.v7.app.AppCompatActivity -implements NavigationFragment.Callback, NavigationPreferenceAdapter.Callback-
NavigationPreference
. On devices with small screens, e.g. on smartphones, the navigation is
- designed to use the whole available space and selecting an item causes the corresponding
- preferences to be shown full screen as well. On devices with large screens, e.g. on tablets, the
- navigation and the preferences of the currently selected item are shown using a split screen
- layout. However, the full screen layout can optionally be used on tablets as well.android.support.v4.app.SupportActivity.ExtraData
Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
-EXTRA_BACK_BUTTON_TEXT
-When starting this activity and using
-EXTRA_SHOW_BUTTON_BAR , this extra can also
- be specified to supply a custom text for the back button. |
-
static java.lang.String |
-EXTRA_FINISH_BUTTON_TEXT
-When starting this activity and using
-EXTRA_SHOW_BUTTON_BAR , this extra can also
- be specified to supply a custom text for the back button when the last navigation preference
- is selected. |
-
static java.lang.String |
-EXTRA_HIDE_NAVIGATION
-When starting this activity, the invoking intent can contain this extra boolean to specify
- that the navigation should not be displayed.
- |
-
static java.lang.String |
-EXTRA_NEXT_BUTTON_TEXT
-When starting this activity and using
-EXTRA_SHOW_BUTTON_BAR , this extra can also
- be specified to supply a custom text for the next button. |
-
static java.lang.String |
-EXTRA_NO_BREAD_CRUMBS
-When starting this activity, the invoking intent can contain this extra boolean that the
- toolbar, which is used to show the title of the currently selected navigation preference,
- should not be displayed.
- |
-
static java.lang.String |
-EXTRA_PROGRESS_FORMAT
-When starting this activity using
-EXTRA_SHOW_BUTTON_BAR and
- EXTRA_SHOW_PROGRESS , this string extra can also be specified to supply a custom
- format for showing the progress. |
-
static java.lang.String |
-EXTRA_SHOW_BUTTON_BAR
-When starting this activity, the invoking intent can contain this extra boolean to display
- back and next buttons in order to use the activity as a wizard.
- |
-
static java.lang.String |
-EXTRA_SHOW_FRAGMENT
-When starting this activity, the invoking intent can contain this extra string to specify
- which fragment should be initially displayed.
- |
-
static java.lang.String |
-EXTRA_SHOW_FRAGMENT_ARGUMENTS
-When starting this activity and using
-EXTRA_SHOW_FRAGMENT , this extra can also
- be specified to supply a bundle of arguments to pass to that fragment when it is instantiated
- during the initial creation of the activity. |
-
static java.lang.String |
-EXTRA_SHOW_FRAGMENT_TITLE
-When starting this activity and using
-EXTRA_SHOW_FRAGMENT , this extra can also
- be specified to supply the title to be shown for that fragment. |
-
static java.lang.String |
-EXTRA_SHOW_PROGRESS
-When starting this activity using
-EXTRA_SHOW_BUTTON_BAR , this boolean extra can
- also used to specify, whether the number of the currently shown wizard step and the number of
- total steps should be shown as the bread crumb title. |
-
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, COMPANION_DEVICE_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RECEIVER_VISIBLE_TO_INSTANT_APPS, RESTRICTIONS_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, STORAGE_SERVICE, STORAGE_STATS_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_CLASSIFICATION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_AWARE_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
Constructor and Description | -
---|
PreferenceActivity() |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-addNavigationListener(NavigationListener listener)
-Adds a new listener, which should be notified, when a navigation preference has been added or
- removed to/from the activity.
- |
-
void |
-addPreferenceFragmentListener(PreferenceFragmentListener listener)
-Adds a new listener, which should be notified, when the currently shown preference fragment
- has been changed, to the activity.
- |
-
void |
-addWizardListener(WizardListener listener)
-Adds a new listener, which should be notified, when the user navigates within the activity,
- if it is used as a wizard.
- |
-
java.util.List<NavigationPreference> |
-getAllNavigationPreferences()
-Returns a list, which contains all navigation preferences, which are contained by the
- activity.
- |
-
android.widget.Button |
-getBackButton()
-Returns the back button, which is shown when the activity is used as a wizard and the first
- navigation preference is not selected.
- |
-
java.lang.CharSequence |
-getBackButtonText()
-Returns the text of the back button, which is shown, when the activity is used as a wizard.
- |
-
int |
-getBreadCrumbBackgroundColor()
-Returns the background color of the toolbar, which is used to show the bread crumb of the
- currently selected navigation preference, when using the split screen layout.
- |
-
int |
-getBreadCrumbElevation()
-Returns the elevation of the toolbar, which is used to show the bread crumb of the currently
- selected navigation preference, when using the split screen layout.
- |
-
android.support.v7.widget.Toolbar |
-getBreadCrumbToolbar()
-Returns the toolbar, which is used to show the bread crumb of the currently selected
- navigation preference, when using the split screen layout.
- |
-
android.view.ViewGroup |
-getButtonBar()
-Returns the button bar, which is shown when the activity is used as a wizard.
- |
-
android.graphics.drawable.Drawable |
-getButtonBarBackground()
-Returns the background of the button bar, which is shown, when the activity is used as a
- wizard.
- |
-
int |
-getButtonBarElevation()
-Returns the elevation of the button bar, which is shown when using the activity as a wizard.
- |
-
android.support.v7.widget.CardView |
-getCardView()
-Returns the card view, which contains the currently shown preference fragment, when using the
- split screen layout.
- |
-
int |
-getCardViewBackgroundColor()
-Returns the background color of the card view, which contains the currently shown preference
- fragment, when using the split screen layout.
- |
-
int |
-getCardViewElevation()
-Returns the elevation of the card view, which contains the currently shown preference
- fragment, when using the split screen layout.
- |
-
android.widget.Button |
-getFinishButton()
-Returns the finish button, which is shown when the activity is used as a wizard and the last
- navigation preference is selected.
- |
-
java.lang.CharSequence |
-getFinishButtonText()
-Returns the text of the finish button, which is shown, when the activity is used as a wizard
- and the last navigation preference is currently selected.
- |
-
android.widget.FrameLayout |
-getFrameLayout()
-Returns the frame layout, which contains the activity's views.
- |
-
android.graphics.drawable.Drawable |
-getNavigationBackground()
-Returns the background of the navigation.
- |
-
int |
-getNavigationDividerColor()
-Returns the color of the dividers, which are contained by the navigation.
- |
-
android.support.v7.preference.PreferenceFragmentCompat |
-getNavigationFragment()
-Returns the preference fragment, which contains the activity's navigation.
- |
-
int |
-getNavigationPreferenceCount()
-Returns the number of navigation preferences, which are contained by the activity.
- |
-
int |
-getNavigationSelectionColor()
-Returns the background color of the currently selected navigation preference.
- |
-
android.support.v7.widget.Toolbar |
-getNavigationToolbar()
-Returns the toolbar, which is used to show the activity's title, when using the split screen
- layout.
- |
-
int |
-getNavigationWidth()
-Returns the width of the navigation, when using the split screen layout.
- |
-
android.widget.Button |
-getNextButton()
-Returns the next button, which is shown when the activity is used as a wizard and the last
- navigation preference is not selected.
- |
-
java.lang.CharSequence |
-getNextButtonText()
-Returns the text of the next button, which is shown, when the activity is used as a wizard.
- |
-
android.support.v4.app.Fragment |
-getPreferenceFragment()
-Returns the currently shown preference fragment.
- |
-
java.lang.String |
-getProgressFormat()
-Returns the string, which is used to format the progress, which is shown, when the activity
- is used as a wizard.
- |
-
NavigationPreference |
-getSelectedNavigationPreference()
-Returns the currently selected navigation preference.
- |
-
int |
-getToolbarElevation()
-Returns the elevation of the activity's toolbar.
- |
-
void |
-hideBreadCrumb(boolean hide)
-Sets, whether the toolbar, which is used to show the bread crumb of the currently selected
- navigation preference, should be hidden, or not.
- |
-
void |
-hideNavigation(boolean hideNavigation)
-Hides or shows the navigation.
- |
-
boolean |
-isBreadCrumbHidden()
-Returns, whether the toolbar, which is used to show the bread crumb of the currently selected
- navigation preference, is hidden, or not.
- |
-
boolean |
-isButtonBarShown()
-Returns, whether the activity is used as a wizard, or not.
- |
-
boolean |
-isNavigationHidden()
-Returns, whether the navigation is currently hidden, or not.
- |
-
boolean |
-isNavigationIconOverridden()
-Returns, whether the behavior of the navigation icon of the activity's toolbar is overridden
- in order to return to the navigation when a preference fragment is currently shown and the
- split screen layout is used.
- |
-
boolean |
-isNavigationPreferenceSelected()
-Returns, whether a navigation preference is currently selected, or not.
- |
-
boolean |
-isPreferenceFragmentShown()
-Returns, whether a preference fragment is currently shown, or not.
- |
-
boolean |
-isProgressShown()
-Returns, whether the progress is shown, if the activity is used as a wizard.
- |
-
boolean |
-isSplitScreen()
-Returns, whether the split screen layout is used, or not.
- |
-
void |
-onBackPressed() |
-
protected void |
-onCreate(android.os.Bundle savedInstanceState) |
-
protected void |
-onCreateNavigation(android.support.v7.preference.PreferenceFragmentCompat fragment)
-The method, which is invoked on implementing subclasses, when the navigation is created.
- |
-
void |
-onNavigationAdapterCreated()
-The method, which is invoked, when the adapter, which contains the navigation items, has
- been created.
- |
-
void |
-onNavigationFragmentCreated(android.support.v7.preference.PreferenceFragmentCompat fragment)
-The method, which is invoked, when the navigation fragment has been attached to its
- activity.
- |
-
void |
-onNavigationPreferenceAdded(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been added.
- |
-
void |
-onNavigationPreferenceRemoved(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been removed.
- |
-
void |
-onNavigationPreferenceSelected(NavigationPreference navigationPreference,
- android.os.Bundle arguments)
-The method, which is invoked, when a navigation preference has been selected.
- |
-
void |
-onNavigationPreferenceUnselected()
-The method, which is invoked, when a navigation preference has been unselected.
- |
-
boolean |
-onOptionsItemSelected(android.view.MenuItem item) |
-
protected void |
-onRestoreInstanceState(android.os.Bundle savedInstanceState) |
-
protected void |
-onSaveInstanceState(android.os.Bundle outState) |
-
boolean |
-onSelectNavigationPreference(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference is about to be selected.
- |
-
void |
-overrideNavigationIcon(boolean overrideNavigationIcon)
-Sets, whether the behavior of the navigation icon of the activity's toolbar should be
- overridden in order to return to the navigation when a preference screen is currently shown
- and the split screen layout is used, or not.
- |
-
void |
-removeNavigationListener(NavigationListener listener)
-Removes a specific listener, which should not be notified, when a navigation preference has
- been added or removed to/from the activity, anymore.
- |
-
void |
-removePreferenceFragmentListener(PreferenceFragmentListener listener)
-Removes a specific listener, which should not be notified, when the currently shown
- preference fragment has been changed, anymore.
- |
-
void |
-removeWizardListener(WizardListener listener)
-Removes a specific listener, which should not be notified, when the user navigates within the
- activity, if it is used as a wizard.
- |
-
void |
-selectNavigationPreference(NavigationPreference navigationPreference)
-Selects a specific navigation preference.
- |
-
void |
-selectNavigationPreference(NavigationPreference navigationPreference,
- android.os.Bundle arguments)
-Selects a specific navigation preference.
- |
-
void |
-setBackButtonText(java.lang.CharSequence text)
-Sets the text of the back button, which is shown, when the activity is used as a wizard.
- |
-
void |
-setBackButtonText(int resourceId)
-Sets the text of the back button, which is shown, when the activity is used as a wizard.
- |
-
void |
-setBreadCrumbBackgroundColor(int color)
-Sets the background color of the toolbar, which is used to show the bread crumb of the
- currently selected navigation preference, when using the split screen layout.
- |
-
void |
-setBreadCrumbElevation(int elevation)
-Sets the elevation of the toolbar, which is used to show the bread crumb of the currently
- selected navigation preference, when using the split screen layout.
- |
-
void |
-setButtonBarBackground(android.graphics.drawable.Drawable background)
-Sets the background of the button bar, which is shown, when the activity is used as a
- wizard.
- |
-
void |
-setButtonBarBackground(int resourceId)
-Sets the background of the button bar, which is shown, when the activity is used as a
- wizard.
- |
-
void |
-setButtonBarBackgroundColor(int color)
-Sets the background of the button bar, which is shown, when the activity is used as a
- wizard.
- |
-
void |
-setButtonBarElevation(int elevation)
-Sets the elevation of the button bar, which is shown when using the activity as a wizard.
- |
-
void |
-setCardViewBackgroundColor(int color)
-Sets the background color of the card view, which contains the currently shown preference
- fragment, when using the split screen layout.
- |
-
void |
-setCardViewElevation(int elevation)
-Sets the elevation of the card view, which contains the currently shown prefernce fragment,
- when using the split screen layout.
- |
-
void |
-setFinishButtonText(java.lang.CharSequence text)
-Sets the text of the next button, which is shown, when the activity is used as a wizard and
- the last navigation preference is currently selected.
- |
-
void |
-setFinishButtonText(int resourceId)
-Sets the text of the next button, which is shown, when the activity is used as a wizard and
- the last navigation preference is currently selected.
- |
-
void |
-setNavigationBackground(android.graphics.drawable.Drawable background)
-Sets the background of the navigation.
- |
-
void |
-setNavigationBackground(int resourceId)
-Sets the background of the navigation.
- |
-
void |
-setNavigationBackgroundColor(int color)
-Sets the background color of the navigation.
- |
-
void |
-setNavigationDividerColor(int color)
-Sets the color of the dividers, which are contained by the navigation.
- |
-
void |
-setNavigationSelectionColor(int color)
-Sets the background color of the currently selected navigation preference.
- |
-
void |
-setNavigationWidth(int width)
-Sets the width of the navigation, when using the split screen layout.
- |
-
void |
-setNextButtonText(java.lang.CharSequence text)
-Sets the text of the next button, which is shown, when the activity is used as a wizard.
- |
-
void |
-setNextButtonText(int resourceId)
-Sets the text of the next button, which is shown, when the activity is used as a wizard.
- |
-
void |
-setProgressFormat(int resourceId)
-Sets the string, which should be used to format the progress, which is shown, when the
- activity is used as a wizard.
- |
-
void |
-setProgressFormat(java.lang.String progressFormat)
-Sets the string, which should be used to format the progress, which is shown, when the
- activity is used as a wizard.
- |
-
void |
-setTitle(java.lang.CharSequence title) |
-
void |
-setTitle(int resourceId) |
-
void |
-setToolbarElevation(int elevation)
-Sets the elevation of the activity's toolbar.
- |
-
void |
-showButtonBar(boolean show)
-Shows or hides the view group, which contains the buttons, which are shown when the activity
- is used as a wizard.
- |
-
void |
-showProgress(boolean showProgress)
-Sets, whether the progress should be shown, when the activity is used as a wizard.
- |
-
void |
-unselectNavigationPreference()
-Unselects the currently selected navigation preference and hides the associated fragment, if
- the split screen layout is not used and the navigation is not hidden.
- |
-
void |
-useSplitScreen(boolean useSplitScreen)
-Sets, whether the split screen layout should be used on tablets, or not.
- |
-
addContentView, closeOptionsMenu, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onKeyDown, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onStart, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, openOptionsMenu, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getLifecycle, getSupportFragmentManager, getSupportLoaderManager, getViewModelStore, onActivityResult, onAttachFragment, onCreatePanelMenu, onLowMemory, onMultiWindowModeChanged, onNewIntent, onPause, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResume, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
getExtraData, putExtraData
attachBaseContext, closeContextMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, enterPictureInPictureMode, enterPictureInPictureMode, finish, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMaxNumPictureInPictureActions, getMediaController, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSystemService, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, isActivityTransitionRunning, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onActivityReenter, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreateOptionsMenu, onCreatePanelView, onCreateThumbnail, onDetachedFromWindow, onEnterAnimationComplete, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, onOptionsMenuClosed, onPictureInPictureModeChanged, onPostCreate, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onProvideAssistContent, onProvideAssistData, onProvideKeyboardShortcuts, onProvideReferrer, onRestart, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onVisibleBehindCanceled, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, overridePendingTransition, postponeEnterTransition, recreate, registerForContextMenu, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, runOnUiThread, setActionBar, setContentTransitionManager, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setIntent, setMediaController, setPictureInPictureParams, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setShowWhenLocked, setTaskDescription, setTitleColor, setTurnScreenOn, setVisible, setVolumeControlStream, setVrModeEnabled, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
applyOverrideConfiguration, getAssets, getTheme
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getSystemServiceName, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startForegroundService, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPointerCaptureChanged
public static final java.lang.String EXTRA_SHOW_FRAGMENT-
public static final java.lang.String EXTRA_SHOW_FRAGMENT_ARGUMENTS-
EXTRA_SHOW_FRAGMENT
, this extra can also
- be specified to supply a bundle of arguments to pass to that fragment when it is instantiated
- during the initial creation of the activity.public static final java.lang.String EXTRA_SHOW_FRAGMENT_TITLE-
EXTRA_SHOW_FRAGMENT
, this extra can also
- be specified to supply the title to be shown for that fragment.public static final java.lang.String EXTRA_HIDE_NAVIGATION-
EXTRA_SHOW_FRAGMENT
to launch the activity to display a specific fragment that
- the user has navigated to.public static final java.lang.String EXTRA_SHOW_BUTTON_BAR-
public static final java.lang.String EXTRA_NEXT_BUTTON_TEXT-
EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the next button.public static final java.lang.String EXTRA_BACK_BUTTON_TEXT-
EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the back button.public static final java.lang.String EXTRA_FINISH_BUTTON_TEXT-
EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the back button when the last navigation preference
- is selected.public static final java.lang.String EXTRA_SHOW_PROGRESS-
EXTRA_SHOW_BUTTON_BAR
, this boolean extra can
- also used to specify, whether the number of the currently shown wizard step and the number of
- total steps should be shown as the bread crumb title.public static final java.lang.String EXTRA_NO_BREAD_CRUMBS-
public static final java.lang.String EXTRA_PROGRESS_FORMAT-
EXTRA_SHOW_BUTTON_BAR
and
- EXTRA_SHOW_PROGRESS
, this string extra can also be specified to supply a custom
- format for showing the progress. The string must be formatted according to the following
- syntax: "*%d*%d*%s*"public final void addPreferenceFragmentListener(@NonNull - PreferenceFragmentListener listener)-
listener
- The listener, which should be added, as an instance of the type PreferenceFragmentListener
. The listener may not be nullpublic final void removePreferenceFragmentListener(@NonNull - PreferenceFragmentListener listener)-
listener
- The listener, which should be removed, as an instance of the type PreferenceFragmentListener
. The listener may not be nullpublic final void addWizardListener(@NonNull - WizardListener listener)-
listener
- The listener, which should be added, as an instance of the type WizardListener
. The listener may not be nullpublic final void removeWizardListener(@NonNull - WizardListener listener)-
listener
- The listener, which should be removed, as an instance of the type WizardListener
. The listener may not be nullpublic final void addNavigationListener(@NonNull - NavigationListener listener)-
listener
- The listener, which should be added, as an instance of the type NavigationListener
. The listener may not be nullpublic final void removeNavigationListener(@NonNull - NavigationListener listener)-
listener
- The listener, which should be removed, as an instance of the type NavigationListener
. The listener may not be nullpublic final boolean isSplitScreen()-
public final android.support.v7.preference.PreferenceFragmentCompat getNavigationFragment()-
PreferenceFragmentCompat
or null, if the navigation has not been created
- yetpublic final android.support.v4.app.Fragment getPreferenceFragment()-
Fragment
- or null, if no preference fragment is currently shownpublic final android.widget.FrameLayout getFrameLayout()-
FrameLayout
or null, if the activity has not been created yetpublic final android.support.v7.widget.CardView getCardView()-
public final android.support.v7.widget.Toolbar getNavigationToolbar()-
public final android.support.v7.widget.Toolbar getBreadCrumbToolbar()-
public final android.view.ViewGroup getButtonBar()-
ViewGroup
or null, if the activity
- has not been created yetpublic final android.widget.Button getNextButton()-
Button
or null, if the activity
- has not been created yetpublic final android.widget.Button getBackButton()-
Button
or null, if the activity
- has not been created yetpublic final android.widget.Button getFinishButton()-
Button
or null, if the activity
- has not been created yetpublic final void useSplitScreen(boolean useSplitScreen)-
useSplitScreen
- True, if the split screen layout should be used on tablets, false otherwise@Px -public final int getNavigationWidth()-
Integer
valuepublic final void setNavigationWidth(@Px - int width)-
width
- The width, which should be set, in pixels as an Integer
value. The width must
- be greater than 0public final boolean isNavigationHidden()-
public final void hideNavigation(boolean hideNavigation)-
hideNavigation
- True, if the navigation should be hidden, false otherwisepublic final boolean isNavigationIconOverridden()-
public final void overrideNavigationIcon(boolean overrideNavigationIcon)-
overrideNavigationIcon
- True, if the behavior of the navigation icon should be overridden, false otherwisepublic final boolean isButtonBarShown()-
public final void showButtonBar(boolean show)-
show
- True, if the button bar should be shown, false otherwise@NonNull -public final java.lang.CharSequence getNextButtonText()-
CharSequence
. The
- text may neither be null, nor emptypublic final void setNextButtonText(@StringRes - int resourceId)-
resourceId
- The resource id of the text, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resourcepublic final void setNextButtonText(@NonNull - java.lang.CharSequence text)-
text
- The text, which should be set, as an instance of the class CharSequence
. The
- text may neither be null, nor empty@NonNull -public final java.lang.CharSequence getBackButtonText()-
CharSequence
. The
- text may neither null, nor emptypublic final void setBackButtonText(@StringRes - int resourceId)-
resourceId
- The resource id of the text, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resourcepublic final void setBackButtonText(@NonNull - java.lang.CharSequence text)-
text
- The text, which should be set, as an instance of the class CharSequence
. The
- text may neither null, nor empty@NonNull -public final java.lang.CharSequence getFinishButtonText()-
CharSequence
. The
- text may neither be null, nor emptypublic final void setFinishButtonText(@StringRes - int resourceId)-
resourceId
- The resource id of the text, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resourcepublic final void setFinishButtonText(@NonNull - java.lang.CharSequence text)-
text
- The text, which should be set, as an instance of the class CharSequence
. The
- text may neither be null, nor emptypublic final boolean isProgressShown()-
public final void showProgress(boolean showProgress)-
showProgress
- True, if the progress should be shown, when the activity is used as a wizard, false
- otherwise@NonNull -public final java.lang.String getProgressFormat()-
String
. The string may
- neither be null, nor emptypublic final void setProgressFormat(@StringRes - int resourceId)-
resourceId
- The resource id of the string, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resource. It must be formatted
- according to the following syntax: "*%d*%d*%s*"public final void setProgressFormat(@NonNull - java.lang.String progressFormat)-
progressFormat
- The string, which should be set, as a String
. The string may neither be null,
- nor empty. It must be formatted according to the following syntax: "*%d*%d*%s*"public final boolean isBreadCrumbHidden()-
public final void hideBreadCrumb(boolean hide)-
hide
- True, if the toolbar, which is used to show the bread crumb of the currently selected
- navigation preference, should be hidden, false otherwisepublic final int getToolbarElevation()-
Integer
valuepublic final void setToolbarElevation(int elevation)-
elevation
- The elevation, which should be set, in dp as an Integer
value. The elevation
- must be at least 0 and at maximum 16public final int getBreadCrumbElevation()-
Integer
valuepublic final void setBreadCrumbElevation(int elevation)-
elevation
- The elevation, which should be set, in dp as an Integer
value. The elevation
- must be at least 0 and at maximum 16public final int getCardViewElevation()-
Integer
valuepublic final void setCardViewElevation(int elevation)-
elevation
- The elevation, which should be set, in dp as an Integer
value. The elevation
- must be at least 0 and at maximum 16public final int getButtonBarElevation()-
Integer
valuepublic final void setButtonBarElevation(int elevation)-
elevation
- The elevation, which should be set, in dp as an Integer
value. The elevation
- must be at least 0 and at maximum 16public final int getCardViewBackgroundColor()-
Integer
valuepublic final void setCardViewBackgroundColor(int color)-
color
- The background color, which should be set, as an Integer
valuepublic final int getBreadCrumbBackgroundColor()-
Integer
valuepublic final void setBreadCrumbBackgroundColor(int color)-
color
- The background color, which should be set, as an Integer
value@Nullable -public final android.graphics.drawable.Drawable getButtonBarBackground()-
Drawable
or null, if no background is setpublic final void setButtonBarBackgroundColor(int color)-
color
- The background color, which should be set, as an Integer
valuepublic final void setButtonBarBackground(@DrawableRes - int resourceId)-
resourceId
- The resource id of the background, which should be set, as an Integer
value.
- The resource id must correspond to a valid drawable resourcepublic final void setButtonBarBackground(@Nullable - android.graphics.drawable.Drawable background)-
background
- The background, which should be set, as an instance of the class Drawable
or
- null, if no background should be set@Nullable -public final android.graphics.drawable.Drawable getNavigationBackground()-
Drawable
or
- null, if no background is setpublic final void setNavigationBackgroundColor(int color)-
color
- The background color, which should be set, as an Integer
valuepublic final void setNavigationBackground(@DrawableRes - int resourceId)-
resourceId
- The resource id of the background, which should be set, as an Integer
value.
- The resource id must correspond to a valid drawable resourcepublic final void setNavigationBackground(@Nullable - android.graphics.drawable.Drawable background)-
background
- The background, which should be set, as an instance of the class Drawable
or
- null, if no background should be setpublic final int getNavigationSelectionColor()-
Integer
public final void setNavigationSelectionColor(int color)-
color
- The color, which should be set, as an Integer
valuepublic final int getNavigationDividerColor()-
Integer
valuepublic final void setNavigationDividerColor(int color)-
color
- The color, which should be set, as an Integer
valuepublic final boolean isPreferenceFragmentShown()-
public final int getNavigationPreferenceCount()-
Integer
value@NonNull -public final java.util.List<NavigationPreference> getAllNavigationPreferences()-
List
or an empty collection, if no navigation
- preferences are contained by the activitypublic final boolean isNavigationPreferenceSelected()-
@Nullable -public final NavigationPreference getSelectedNavigationPreference()-
NavigationPreference
or null, if no navigation preference is currently selectedpublic final void selectNavigationPreference(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which should be selected, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullpublic final void selectNavigationPreference(@NonNull - NavigationPreference navigationPreference, - @Nullable - android.os.Bundle arguments)-
navigationPreference
- The navigation preference, which should be selected, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullarguments
- The arguments, which should be passed to the fragment, which is associated with the
- navigation preference, as an instance of the class Bundle
or null, if no
- arguments should be passed to the fragmentpublic final void unselectNavigationPreference()-
protected void onCreateNavigation(@NonNull - android.support.v7.preference.PreferenceFragmentCompat fragment)-
fragment
- The preference fragment, which contains the navigation's preferences, as an instance
- of the class PreferenceFragmentCompat
. The preference fragment may not be
- nullpublic final void setTitle(@StringRes - int resourceId)-
setTitle
in class android.app.Activity
public final void setTitle(@Nullable - java.lang.CharSequence title)-
setTitle
in class android.app.Activity
public final void onNavigationFragmentCreated(@NonNull - android.support.v7.preference.PreferenceFragmentCompat fragment)-
NavigationFragment.Callback
onNavigationFragmentCreated
in interface NavigationFragment.Callback
fragment
- The navigation fragment as an instance of the class PreferenceFragmentCompat
. The fragment may not be nullpublic final void onNavigationAdapterCreated()-
NavigationFragment.Callback
onNavigationAdapterCreated
in interface NavigationFragment.Callback
public final boolean onSelectNavigationPreference(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onSelectNavigationPreference
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which is about to be selected, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullpublic final void onNavigationPreferenceSelected(@NonNull - NavigationPreference navigationPreference, - @Nullable - android.os.Bundle arguments)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceSelected
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been selected, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullarguments
- The arguments, which should be passed to the fragment, which is associated with
- the navigation preference, as an instance of the class Bundle
or null, if
- no arguments should be passed to the fragmentpublic final void onNavigationPreferenceUnselected()-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceUnselected
in interface NavigationPreferenceAdapter.Callback
public final void onNavigationPreferenceAdded(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceAdded
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been added, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullpublic final void onNavigationPreferenceRemoved(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceRemoved
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been removed, as an instance of the class
- NavigationPreference
. The navigation preference may not be null@CallSuper -public void onBackPressed()-
onBackPressed
in class android.support.v4.app.FragmentActivity
@CallSuper -public boolean onOptionsItemSelected(android.view.MenuItem item)-
onOptionsItemSelected
in class android.app.Activity
@CallSuper -protected void onCreate(android.os.Bundle savedInstanceState)-
onCreate
in class android.support.v7.app.AppCompatActivity
protected void onSaveInstanceState(android.os.Bundle outState)-
onSaveInstanceState
in class android.support.v7.app.AppCompatActivity
protected void onRestoreInstanceState(android.os.Bundle savedInstanceState)-
onRestoreInstanceState
in class android.app.Activity
public abstract class PreferenceFragment -extends AbstractPreferenceFragment-
android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartFragmentCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartScreenCallback
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
-EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT
-When attaching this fragment to an activity and using
-EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON ,
- this extra can also be specified to supply a custom text for the button, which allows to
- restore the preferences' default values. |
-
static java.lang.String |
-EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON
-When attaching this fragment to an activity, the passed bundle can contain this extra boolean
- to display the button, which allows to restore the preferences' default values.
- |
-
ARG_PREFERENCE_ROOT
Constructor and Description | -
---|
PreferenceFragment() |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-addRestoreDefaultsListener(RestoreDefaultsListener listener)
-Adds a new listener, which should be notified, when the preferences' default values should be
- restored, to the fragment.
- |
-
android.view.ViewGroup |
-getButtonBar()
-Returns the view group, which contains the button, which allows to restore the preferences'
- default values.
- |
-
android.graphics.drawable.Drawable |
-getButtonBarBackground()
-Returns the background of the view group, which contains the button, which allows to restore
- the preferences' default values.
- |
-
int |
-getButtonBarElevation()
-Returns the elevation of the view group, which contains the button, which allows to restore
- the preferences' default values.
- |
-
android.widget.FrameLayout |
-getFrameLayout()
-Returns the frame layout, which contains the fragment's views.
- |
-
android.widget.Button |
-getRestoreDefaultsButton()
-Returns the button, which allows to restore the preferences' default values.
- |
-
java.lang.CharSequence |
-getRestoreDefaultsButtonText()
-Returns the text of the button, which allows to restore the preferences' default values.
- |
-
boolean |
-isRestoreDefaultsButtonShown()
-Returns, whether the button, which allows to restore the preferences' default values, is
- currently shown, or not.
- |
-
void |
-onActivityCreated(android.os.Bundle savedInstanceState) |
-
void |
-onCreate(android.os.Bundle savedInstanceState) |
-
android.view.View |
-onCreateView(android.view.LayoutInflater inflater,
- android.view.ViewGroup parent,
- android.os.Bundle savedInstanceState) |
-
void |
-removeRestoreDefaultsListener(RestoreDefaultsListener listener)
-Removes a specific listener, which should not be notified anymore, when the preferences'
- default values should be restored, from the fragment.
- |
-
void |
-restoreDefaults()
-Restores the default values of all preferences, which are contained by the fragment.
- |
-
void |
-setButtonBarBackground(android.graphics.drawable.Drawable background)
-Sets the background of the view group, which contains the button, which allows to restore the
- preferences' default values.
- |
-
void |
-setButtonBarBackground(int resourceId)
-Sets the background of the view group, which contains the button, which allows to restore the
- preferences' default values.
- |
-
void |
-setButtonBarBackgroundColor(int color)
-Sets the background color of the view group, which contains the button, which allows to
- restore the preferences' default values.
- |
-
void |
-setButtonBarElevation(int elevation)
-Sets the elevation of the view group, which contains the button, which allows to restore the
- preferences' default values.
- |
-
void |
-setRestoreDefaultsButtonText(java.lang.CharSequence text)
-Sets the text of the button, which allows to restore the preferences' default values.
- |
-
void |
-setRestoreDefaultsButtonText(int resourceId)
-Sets the text of the button, which allows to restore the preferences' default values.
- |
-
void |
-showRestoreDefaultsButton(boolean show)
-Shows or hides the button, which allows to restore the preferences' default values.
- |
-
getDividerColor, onCreateAdapter, onCreatePreferenceAdapter, setDividerColor
addPreferencesFromResource, findPreference, getCallbackFragment, getListView, getPreferenceManager, getPreferenceScreen, onBindPreferences, onCreateLayoutManager, onCreatePreferences, onCreateRecyclerView, onDestroyView, onDisplayPreferenceDialog, onNavigateToScreen, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onUnbindPreferences, onViewCreated, scrollToPreference, scrollToPreference, setDivider, setDividerHeight, setPreferenceScreen, setPreferencesFromResource
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final java.lang.String EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON-
public static final java.lang.String EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT-
EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON
,
- this extra can also be specified to supply a custom text for the button, which allows to
- restore the preferences' default values.public final android.widget.FrameLayout getFrameLayout()-
FrameLayout
or null, if the fragment has not been created yetpublic final android.view.ViewGroup getButtonBar()-
ViewGroup
or null, if the button is not
- shown or if the fragment has not been created yetpublic final android.widget.Button getRestoreDefaultsButton()-
Button
or null, if the button is not shownpublic final void addRestoreDefaultsListener(@NonNull - RestoreDefaultsListener listener)-
listener
- The listener, which should be added as an instance of the type RestoreDefaultsListener
. The listener may not be nullpublic final void removeRestoreDefaultsListener(@NonNull - RestoreDefaultsListener listener)-
listener
- The listener, which should be removed as an instance of the type RestoreDefaultsListener
. The listener may not be nullpublic final void restoreDefaults()-
public final boolean isRestoreDefaultsButtonShown()-
public final void showRestoreDefaultsButton(boolean show)-
show
- True, if the button, which allows to restore the preferences' default values, should
- be shown, false otherwise@NonNull -public final java.lang.CharSequence getRestoreDefaultsButtonText()-
CharSequence
public final void setRestoreDefaultsButtonText(@StringRes - int resourceId)-
resourceId
- The resource id of the text, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resourcepublic final void setRestoreDefaultsButtonText(@NonNull - java.lang.CharSequence text)-
text
- The text, which should be set, as an instance of the class CharSequence
. The
- text may neither be null, nor emptypublic final android.graphics.drawable.Drawable getButtonBarBackground()-
Drawable
public final void setButtonBarBackground(@DrawableRes - int resourceId)-
resourceId
- The resource id of the background, which should be set, as an Integer
value.
- The resource id must correspond to a valid drawable resourcepublic final void setButtonBarBackgroundColor(int color)-
color
- The background color, which should be set, as an Integer
valuepublic final void setButtonBarBackground(@Nullable - android.graphics.drawable.Drawable background)-
background
- The background, which should be set, as an instance of the class Drawable
or
- null, if no background should be setpublic final int getButtonBarElevation()-
Integer
valuepublic final void setButtonBarElevation(int elevation)-
elevation
- The elevation, which should be set, in dp as an Integer
value. The elevation
- must be at least 1 and at maximum 16@CallSuper -public void onCreate(android.os.Bundle savedInstanceState)-
onCreate
in class AbstractPreferenceFragment
@CallSuper -public void onActivityCreated(android.os.Bundle savedInstanceState)-
onActivityCreated
in class android.support.v7.preference.PreferenceFragmentCompat
@NonNull - @CallSuper -public android.view.View onCreateView(android.view.LayoutInflater inflater, - android.view.ViewGroup parent, - android.os.Bundle savedInstanceState)-
onCreateView
in class AbstractPreferenceFragment
public interface PreferenceFragmentListener
-PreferenceActivity
has been changed, must implement.Modifier and Type | -Method and Description | -
---|---|
void |
-onPreferenceFragmentHidden(android.support.v4.app.Fragment fragment)
-The method, which is invoked, when a previously shown preference fragment has been hidden.
- |
-
void |
-onPreferenceFragmentShown(NavigationPreference navigationPreference,
- android.support.v4.app.Fragment fragment)
-The method, which is invoked, when a preference fragment has been shown.
- |
-
void onPreferenceFragmentShown(@NonNull - NavigationPreference navigationPreference, - @NonNull - android.support.v4.app.Fragment fragment)-
navigationPreference
- The navigation preference, the fragment, which has been shown, is associated with, as
- an instance of the class NavigationPreference
. The navigation preference may
- not be nullfragment
- The fragment, which has been shown, as an instance of the class Fragment
. The
- fragment may not be nullvoid onPreferenceFragmentHidden(@NonNull - android.support.v4.app.Fragment fragment)-
fragment
- The fragment, which has been hidden, as an instance of the class Fragment
.
- The fragment may not be nullpublic interface RestoreDefaultsListener
-PreferenceFragment
, should be restored.Modifier and Type | -Method and Description | -
---|---|
void |
-onRestoredDefaultValue(PreferenceFragment fragment,
- android.support.v7.preference.Preference preference,
- java.lang.Object oldValue,
- java.lang.Object newValue)
-The method, which is invoked, when the default value of a specific preference has been
- restored.
- |
-
boolean |
-onRestoreDefaultValueRequested(PreferenceFragment fragment,
- android.support.v7.preference.Preference preference,
- java.lang.Object currentValue)
-The method, which is invoked, when the default value of a specific preference, should be
- restored.
- |
-
boolean |
-onRestoreDefaultValuesRequested(PreferenceFragment fragment)
-The method, which is invoked, when the default values of the preferences, which belong to a
- specific preference fragment, should be restored.
- |
-
boolean onRestoreDefaultValuesRequested(@NonNull - PreferenceFragment fragment)-
fragment
- The fragment, whose preferences' default values should be restored, as an instance of
- the class PreferenceFragment
boolean onRestoreDefaultValueRequested(@NonNull - PreferenceFragment fragment, - @NonNull - android.support.v7.preference.Preference preference, - java.lang.Object currentValue)-
fragment
- The fragment, the preference, whose default value should be restored, belongs to, as
- an instance of the class PreferenceFragment
preference
- The preference, whose default value should be restored, as an instance of the class
- Preference
currentValue
- The current value of the preference, whose default value should be restored, as an
- instance of the class Object
void onRestoredDefaultValue(@NonNull - PreferenceFragment fragment, - @NonNull - android.support.v7.preference.Preference preference, - java.lang.Object oldValue, - java.lang.Object newValue)-
fragment
- The fragment, the preference, whose default value has been restored, belongs to, as
- an instance of the class PreferenceFragment
preference
- The preference, whose default value has been restored, as an instance of the class
- Preference
oldValue
- The old value of the preference, whose default value has been restored, as an
- instance of the class Object
newValue
- The new value of the preference, whose default value has been restored, as an
- instance of the class Object
public interface WizardListener
-PreferenceActivity
, which is used as wizard, by using its next-, back- and finish-button. The
- return values of the interface's methods allow to take influence on the navigation, e.g. if the
- currently shown preferences should be validated.Modifier and Type | -Method and Description | -
---|---|
boolean |
-onFinish(NavigationPreference navigationPreference,
- android.support.v4.app.Fragment fragment,
- android.os.Bundle bundle)
-The method, which is invoked, when the user wants to finish the last step of the wizard.
- |
-
android.os.Bundle |
-onNextStep(NavigationPreference navigationPreference,
- android.support.v4.app.Fragment fragment,
- android.os.Bundle bundle)
-The method, which is invoked, when the user wants to navigate to the next step of the
- wizard.
- |
-
android.os.Bundle |
-onPreviousStep(NavigationPreference navigationPreference,
- android.support.v4.app.Fragment fragment,
- android.os.Bundle bundle)
-The method, which is invoked, when the user wants to navigate to the previous step of the
- wizard.
- |
-
boolean |
-onSkip(NavigationPreference navigationPreference,
- android.support.v4.app.Fragment fragment,
- android.os.Bundle bundle)
-The method, which is invoked, when the user wants to skip the wizard.
- |
-
android.os.Bundle onNextStep(@NonNull - NavigationPreference navigationPreference, - @NonNull - android.support.v4.app.Fragment fragment, - @Nullable - android.os.Bundle bundle)-
navigationPreference
- The currently selected navigation preference as an instance of the class NavigationPreference
. The navigation preference may not be nullfragment
- The currently shown preference fragment as an instance of the class Fragment
.
- The fragment may not be nullbundle
- A bundle, which contains the parameters, which have been passed to the currently
- shown preference fragment, as an instance of the class Bundle
or null, if no
- parameters have been passed to the fragmentBundle
or null, if navigating to the next step of the wizard should not be allowedandroid.os.Bundle onPreviousStep(@NonNull - NavigationPreference navigationPreference, - @NonNull - android.support.v4.app.Fragment fragment, - @Nullable - android.os.Bundle bundle)-
navigationPreference
- The currently selected navigation preference as an instance of the class NavigationPreference
. The navigation preference may not be nullfragment
- The currently shown preference fragment as an instance of the class Fragment
.
- The fragment may not be nullbundle
- A bundle, which contains the parameters, which have been passed to the currently
- shown preference fragment, as an instance of the class Bundle
or null, if no
- parameters have been passed to the fragmentBundle
or null, if navigating to the previous step of the wizard should not be
- allowedboolean onFinish(@NonNull - NavigationPreference navigationPreference, - @NonNull - android.support.v4.app.Fragment fragment, - @Nullable - android.os.Bundle bundle)-
navigationPreference
- The currently selected navigation preference as an instance of the class NavigationPreference
. The navigation preference may not be nullfragment
- The currently shown preference fragment as an instance of the class Fragment
.
- The fragment may not be nullbundle
- A bundle, which contains the parameters, which have been passed to the currently
- shown preference fragment, as an instance of the class Bundle
or null, if no
- parameters have been passed to the fragmentboolean onSkip(@NonNull - NavigationPreference navigationPreference, - @NonNull - android.support.v4.app.Fragment fragment, - @Nullable - android.os.Bundle bundle)-
navigationPreference
- The currently selected navigation preference as an instance of the class NavigationPreference
. The navigation preference may not be nullfragment
- The currently shown preference fragment as an instance of the class Fragment
.
- The fragment may not be nullbundle
- A bundle, which contains the parameters, which have been passed to the currently
- shown preference fragment, as an instance of the class Bundle
or null, if no
- parameters have been passed to the fragmentpublic static interface NavigationPreferenceAdapter.Callback
-Modifier and Type | -Method and Description | -
---|---|
void |
-onNavigationPreferenceAdded(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been added.
- |
-
void |
-onNavigationPreferenceRemoved(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been removed.
- |
-
void |
-onNavigationPreferenceSelected(NavigationPreference navigationPreference,
- android.os.Bundle arguments)
-The method, which is invoked, when a navigation preference has been selected.
- |
-
void |
-onNavigationPreferenceUnselected()
-The method, which is invoked, when a navigation preference has been unselected.
- |
-
boolean |
-onSelectNavigationPreference(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference is about to be selected.
- |
-
boolean onSelectNavigationPreference(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which is about to be selected, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullvoid onNavigationPreferenceSelected(@NonNull - NavigationPreference navigationPreference, - @Nullable - android.os.Bundle arguments)-
navigationPreference
- The navigation preference, which has been selected, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullarguments
- The arguments, which should be passed to the fragment, which is associated with
- the navigation preference, as an instance of the class Bundle
or null, if
- no arguments should be passed to the fragmentvoid onNavigationPreferenceUnselected()-
void onNavigationPreferenceAdded(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which has been added, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullvoid onNavigationPreferenceRemoved(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, which has been removed, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullpublic class NavigationPreferenceAdapter -extends PreferenceAdapter -implements NavigationPreference.Callback-
PreferenceAdapter
, which is used to visualize the navigation preferences of a PreferenceActivity
. It allows to register a callback at the adapter's NavigationPreference
sModifier and Type | -Class and Description | -
---|---|
static interface |
-NavigationPreferenceAdapter.Callback
-Defines the callback, a class, which should be notified about the adapter's events, must
- implement.
- |
-
Constructor and Description | -
---|
NavigationPreferenceAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen,
- NavigationPreferenceAdapter.Callback callback)
-Creates a new
-PreferenceAdapter , which is used to visualize the navigation
- preferences of a PreferenceActivity . |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.List<NavigationPreference> |
-getAllNavigationPreferences()
-Returns a list, which contains all navigation preferences, which are contained by the
- adapter.
- |
-
NavigationPreference |
-getNavigationPreference(int index)
-Returns the navigation preference, which corresponds to a specific index.
- |
-
int |
-getNavigationPreferenceCount()
-Returns the number of navigation preferences, which are contained by the adapter.
- |
-
NavigationPreference |
-getSelectedNavigationPreference()
-Returns the currently selected navigation preference.
- |
-
int |
-getSelectedNavigationPreferenceIndex()
-Returns the index of the navigation preference, which is currently selected, among all
- navigation preferences.
- |
-
int |
-indexOfNavigationPreference(NavigationPreference navigationPreference)
-Returns the index of a specific navigation preference among all navigation preferences, which
- are contained by the adapter.
- |
-
void |
-onShowFragment(NavigationPreference navigationPreference)
-The method, which is invoked, when the fragment, which is associated with a specific
- navigation preference, should be shown.
- |
-
protected void |
-onVisualizePreference(android.support.v7.preference.Preference preference,
- android.support.v7.preference.PreferenceViewHolder viewHolder)
-The method, which is invoked, when a specific preference is visualized.
- |
-
void |
-selectNavigationPreference(int index,
- android.os.Bundle arguments)
-Selects a specific navigation preference.
- |
-
void |
-selectNavigationPreference(NavigationPreference navigationPreference,
- android.os.Bundle arguments)
-Selects a specific navigation preference.
- |
-
void |
-setEnabled(boolean enabled)
-Sets, whether the items of the adapter are enabled, i.e.
- |
-
void |
-setSelectionColor(int color)
-Sets the background color of the currently selected navigation preference.
- |
-
onBindViewHolder
getItem, getItemCount, getItemId, getItemViewType, getPreferenceAdapterPosition, getPreferenceAdapterPosition, onCreateViewHolder, onPreferenceChange, onPreferenceHierarchyChange, onPreferenceVisibilityChange
bindViewHolder, createViewHolder, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public NavigationPreferenceAdapter(@NonNull - android.support.v7.preference.PreferenceScreen preferenceScreen, - @Nullable - NavigationPreferenceAdapter.Callback callback)-
PreferenceAdapter
, which is used to visualize the navigation
- preferences of a PreferenceActivity
.preferenceScreen
- The preference screen, which contains the preferences, which should be managed by the
- adapter, as an instance of the class PreferenceScreen
. The preference screen
- may not be nullcallback
- The callback, which should be notified about the adapter's events, as an instance of
- the type NavigationPreferenceAdapter.Callback
or null, if no callback should be notifiedpublic final int getNavigationPreferenceCount()-
Integer
value@NonNull -public final java.util.List<NavigationPreference> getAllNavigationPreferences()-
List
or an empty collection, if no navigation
- preferences are contained by the adapterpublic final int indexOfNavigationPreference(@NonNull - NavigationPreference navigationPreference)-
navigationPreference
- The navigation preference, whose index should be returned, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullInteger
value or -1, if
- the navigation preference is not contained by the adapter@NonNull -public final NavigationPreference getNavigationPreference(int index)-
index
- The index of the navigation preference, which should be returned, among all
- navigation preferences as an Integer
valueNavigationPreference
. The navigation preference may not be null@Nullable -public final NavigationPreference getSelectedNavigationPreference()-
NavigationPreference
or null, if no navigation preference is selectedpublic final int getSelectedNavigationPreferenceIndex()-
Integer
value or -1, if no navigation preference is selectedpublic final void selectNavigationPreference(@Nullable - NavigationPreference navigationPreference, - @Nullable - android.os.Bundle arguments)-
navigationPreference
- The navigation preference, which should be selected, as an instance of the class
- NavigationPreference
or null, if no navigation preference should be selectedarguments
- The arguments, which should be passed to the fragment, which is associated with the
- navigation preference, as an instance of the class Bundle
or null, if no
- arguments should be passed to the fragmentpublic final void selectNavigationPreference(int index, - @Nullable - android.os.Bundle arguments)-
index
- The index of the navigation preference, which should be selected, among all
- navigation preferences, as an Integer
value or -1, if no navigation
- preference should be selectedarguments
- The arguments, which should be passed to the fragment, which is associated with the
- navigation preference, as an instance of the class Bundle
or null, if no
- arguments should be passed to the fragmentpublic final void setSelectionColor(int color)-
color
- The color, which should be set, as an Integer
valuepublic final void setEnabled(boolean enabled)-
enabled
- True, if the items of the adapter should be enabled, false otherwisepublic final void onShowFragment(@NonNull - NavigationPreference navigationPreference)-
NavigationPreference.Callback
onShowFragment
in interface NavigationPreference.Callback
navigationPreference
- The navigation preference, whose fragment should be shown, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullprotected final void onVisualizePreference(@NonNull - android.support.v7.preference.Preference preference, - @NonNull - android.support.v7.preference.PreferenceViewHolder viewHolder)-
PreferenceAdapter
onVisualizePreference
in class PreferenceAdapter
preference
- The preference, which is visualized, as an instance of the class Preference
.
- The preference may not be nullviewHolder
- The view holder, which corresponds to the preference, as an instance of the class
- PreferenceViewHolder
. The view holder may not be nullpublic class PreferenceAdapter
-extends android.support.v7.preference.PreferenceGroupAdapter
-PreferenceGroupAdapter
in order to
- modify the appearance of preferences.Constructor and Description | -
---|
PreferenceAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen)
-Creates a new recycler view adapter, which extends the class
-PreferenceGroupAdapter
- in order to modify the appearance of preferences. |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-onBindViewHolder(android.support.v7.preference.PreferenceViewHolder viewHolder,
- int position) |
-
protected void |
-onVisualizePreference(android.support.v7.preference.Preference preference,
- android.support.v7.preference.PreferenceViewHolder viewHolder)
-The method, which is invoked, when a specific preference is visualized.
- |
-
getItem, getItemCount, getItemId, getItemViewType, getPreferenceAdapterPosition, getPreferenceAdapterPosition, onCreateViewHolder, onPreferenceChange, onPreferenceHierarchyChange, onPreferenceVisibilityChange
bindViewHolder, createViewHolder, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PreferenceAdapter(@NonNull - android.support.v7.preference.PreferenceScreen preferenceScreen)-
PreferenceGroupAdapter
- in order to modify the appearance of preferences.preferenceScreen
- The preference screen, which contains the preferences, which should be managed by the
- adapter, as an instance of the class PreferenceScreen
. The preference screen
- may not be null@CallSuper -protected void onVisualizePreference(@NonNull - android.support.v7.preference.Preference preference, - @NonNull - android.support.v7.preference.PreferenceViewHolder viewHolder)-
preference
- The preference, which is visualized, as an instance of the class Preference
.
- The preference may not be nullviewHolder
- The view holder, which corresponds to the preference, as an instance of the class
- PreferenceViewHolder
. The view holder may not be nullpublic final void onBindViewHolder(@NonNull - android.support.v7.preference.PreferenceViewHolder viewHolder, - int position)-
onBindViewHolder
in class android.support.v7.preference.PreferenceGroupAdapter
Interface | -Description | -
---|---|
NavigationPreferenceAdapter.Callback | -
- Defines the callback, a class, which should be notified about the adapter's events, must
- implement.
- |
-
Class | -Description | -
---|---|
NavigationPreferenceAdapter | -
- A
-PreferenceAdapter , which is used to visualize the navigation preferences of a PreferenceActivity . |
-
PreferenceAdapter | -
- A recycler view adapter, which extends the class
-PreferenceGroupAdapter in order to
- modify the appearance of preferences. |
-
public static enum HideViewOnScrollAnimation.Direction -extends java.lang.Enum<HideViewOnScrollAnimation.Direction>-
Enum Constant and Description | -
---|
DOWN
-If the view should be translated downwards.
- |
-
UP
-If the view should be translated upwards.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static HideViewOnScrollAnimation.Direction |
-valueOf(java.lang.String name)
-Returns the enum constant of this type with the specified name.
- |
-
static HideViewOnScrollAnimation.Direction[] |
-values()
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final HideViewOnScrollAnimation.Direction UP-
public static final HideViewOnScrollAnimation.Direction DOWN-
public static HideViewOnScrollAnimation.Direction[] values()-
-for (HideViewOnScrollAnimation.Direction c : HideViewOnScrollAnimation.Direction.values()) - System.out.println(c); -
public static HideViewOnScrollAnimation.Direction valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic class HideViewOnScrollAnimation
-extends android.support.v7.widget.RecyclerView.OnScrollListener
-Modifier and Type | -Class and Description | -
---|---|
static class |
-HideViewOnScrollAnimation.Direction
-Contains all possible directions, which can be used to translate the animated view in order
- hide it.
- |
-
Constructor and Description | -
---|
HideViewOnScrollAnimation(android.view.View view,
- HideViewOnScrollAnimation.Direction direction)
-Creates a new scroll listener, which allows to animate a view to become hidden or shown
- depending on the observed list view's scrolling direction.
- |
-
HideViewOnScrollAnimation(android.view.View view,
- HideViewOnScrollAnimation.Direction direction,
- long animationDuration)
-Creates a new scroll listener, which allows to animate a view to become hidden or shown
- depending on the observed list view's scrolling direction.
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-addListener(HideViewOnScrollAnimationListener listener)
-Adds a new listener, which should be notified about the animation's internal state, to the
- animation.
- |
-
long |
-getAnimationDuration()
-Returns the duration of the animation, which is used to show or hide the view.
- |
-
HideViewOnScrollAnimation.Direction |
-getDirection()
-Returns the direction, which should be be used to translate the view in order to hide it.
- |
-
android.view.View |
-getView()
-Returns the view, which is animated by the listener.
- |
-
void |
-hideView()
-Hides the view.
- |
-
void |
-onScrolled(android.support.v7.widget.RecyclerView recyclerView,
- int dx,
- int dy) |
-
void |
-removeListener(HideViewOnScrollAnimationListener listener)
-Removes a specific listener, which should not be notified about the animation's internal
- state, from the animation.
- |
-
void |
-showView()
-Shows the view.
- |
-
onScrollStateChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public HideViewOnScrollAnimation(@NonNull - android.view.View view, - @NonNull - HideViewOnScrollAnimation.Direction direction)-
view
- The view, which should be animated by the listener, as an instance of the class
- View
. The view may not be nulldirection
- The direction, which should be be used to translate the view in order to hide it, as
- a value of the enum HideViewOnScrollAnimation.Direction
. The direction may either be UP
or
- DOWN
public HideViewOnScrollAnimation(@NonNull - android.view.View view, - @NonNull - HideViewOnScrollAnimation.Direction direction, - long animationDuration)-
view
- The view, which should be animated by the listener, as an instance of the class
- View
. The view may not be nulldirection
- The direction, which should be be used to translate the view in order to hide it, as
- a value of the enum HideViewOnScrollAnimation.Direction
. The direction may either be UP
or
- DOWN
animationDuration
- The duration of the animation, which is used to show or hide the view, in
- milliseconds as a Long
value. The duration must be greater than 0public final void showView()-
public final void hideView()-
public final android.view.View getView()-
View
public final HideViewOnScrollAnimation.Direction getDirection()-
HideViewOnScrollAnimation.Direction
. The direction may either be UP
or
- DOWN
public final long getAnimationDuration()-
Long
valuepublic final void addListener(@NonNull - HideViewOnScrollAnimationListener listener)-
listener
- The listener, which should be added, as an instance of the type HideViewOnScrollAnimationListener
. The listener may not be nullpublic final void removeListener(@NonNull - HideViewOnScrollAnimationListener listener)-
listener
- The listener, which should be removed, as an instance of the tpye HideViewOnScrollAnimationListener
. The listener may not be nullpublic final void onScrolled(android.support.v7.widget.RecyclerView recyclerView, - int dx, - int dy)-
onScrolled
in class android.support.v7.widget.RecyclerView.OnScrollListener
public interface HideViewOnScrollAnimationListener
-HideViewOnScrollAnimation
, must implement.Modifier and Type | -Method and Description | -
---|---|
void |
-onScrollingDown(HideViewOnScrollAnimation animation,
- android.view.View animatedView,
- int scrollPosition)
-The method, which is invoked, when the list view, which is observed by the animation, is
- scrolling downwards.
- |
-
void |
-onScrollingUp(HideViewOnScrollAnimation animation,
- android.view.View animatedView,
- int scrollPosition)
-The method, which is invoked, when the list view, which is observed by the animation, is
- scrolling upwards.
- |
-
void onScrollingDown(@NonNull - HideViewOnScrollAnimation animation, - @NonNull - android.view.View animatedView, - int scrollPosition)-
animation
- The observer animation, as an instance of the class HideViewOnScrollAnimation
animatedView
- The view, which is animated by the observed animation, as an instance of the class
- View
scrollPosition
- The current scroll position of the list view's first item in pixels as an Integer
valuevoid onScrollingUp(@NonNull - HideViewOnScrollAnimation animation, - @NonNull - android.view.View animatedView, - int scrollPosition)-
animation
- The observer animation, as an instance of the class HideViewOnScrollAnimation
animatedView
- The view, which is animated by the observed animation, as an instance of the class
- View
scrollPosition
- The current scroll position of the list view's first item in pixels as an Integer
valueInterface | -Description | -
---|---|
HideViewOnScrollAnimationListener | -
- Defines the interface, a class, which should be notified about the internal state of a
-HideViewOnScrollAnimation , must implement. |
-
Class | -Description | -
---|---|
HideViewOnScrollAnimation | -
- A scroll listener, which allows to animate a view to become hidden or shown depending on the
- observed list view's scrolling direction.
- |
-
Enum | -Description | -
---|---|
HideViewOnScrollAnimation.Direction | -
- Contains all possible directions, which can be used to translate the animated view in order
- hide it.
- |
-
public abstract class AbstractPreferenceFragment
-extends android.support.v7.preference.PreferenceFragmentCompat
-android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartFragmentCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartScreenCallback
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
ARG_PREFERENCE_ROOT
Constructor and Description | -
---|
AbstractPreferenceFragment() |
-
Modifier and Type | -Method and Description | -
---|---|
int |
-getDividerColor()
-Returns the color of the dividers, which are shown above preference categories.
- |
-
void |
-onCreate(android.os.Bundle savedInstanceState) |
-
protected android.support.v7.widget.RecyclerView.Adapter<?> |
-onCreateAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen) |
-
protected PreferenceAdapter |
-onCreatePreferenceAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen)
-The method, which is invoked in order to create the adapter, which is used to manage the
- fragment's preferences.
- |
-
android.view.View |
-onCreateView(android.view.LayoutInflater inflater,
- android.view.ViewGroup parent,
- android.os.Bundle savedInstanceState) |
-
void |
-setDividerColor(int color)
-Sets the color of the dividers, which are shown above preference categories.
- |
-
addPreferencesFromResource, findPreference, getCallbackFragment, getListView, getPreferenceManager, getPreferenceScreen, onActivityCreated, onBindPreferences, onCreateLayoutManager, onCreatePreferences, onCreateRecyclerView, onDestroyView, onDisplayPreferenceDialog, onNavigateToScreen, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onUnbindPreferences, onViewCreated, scrollToPreference, scrollToPreference, setDivider, setDividerHeight, setPreferenceScreen, setPreferencesFromResource
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public AbstractPreferenceFragment()-
public final int getDividerColor()-
Integer
valuepublic final void setDividerColor(int color)-
color
- The color, which should be set, as an Integer
value@NonNull -protected PreferenceAdapter onCreatePreferenceAdapter(@NonNull - android.support.v7.preference.PreferenceScreen preferenceScreen)-
preferenceScreen
- The preference screen, which contains the preferences, which should be managed by the
- adapter, as an instance of the class PreferenceScreen
. The preference screen
- may not be nullPreferenceAdapter
. The adapter may not be null@CallSuper -public void onCreate(android.os.Bundle savedInstanceState)-
onCreate
in class android.support.v7.preference.PreferenceFragmentCompat
@CallSuper - @NonNull -public android.view.View onCreateView(android.view.LayoutInflater inflater, - android.view.ViewGroup parent, - android.os.Bundle savedInstanceState)-
onCreateView
in class android.support.v7.preference.PreferenceFragmentCompat
@NonNull -protected final android.support.v7.widget.RecyclerView.Adapter<?> onCreateAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen)-
onCreateAdapter
in class android.support.v7.preference.PreferenceFragmentCompat
public static interface NavigationFragment.Callback
-Modifier and Type | -Method and Description | -
---|---|
void |
-onNavigationAdapterCreated()
-The method, which is invoked, when the adapter, which contains the navigation items, has
- been created.
- |
-
void |
-onNavigationFragmentCreated(android.support.v7.preference.PreferenceFragmentCompat fragment)
-The method, which is invoked, when the navigation fragment has been attached to its
- activity.
- |
-
void onNavigationFragmentCreated(@NonNull - android.support.v7.preference.PreferenceFragmentCompat fragment)-
fragment
- The navigation fragment as an instance of the class PreferenceFragmentCompat
. The fragment may not be nullvoid onNavigationAdapterCreated()-
public class NavigationFragment -extends AbstractPreferenceFragment -implements NavigationPreferenceAdapter.Callback-
PreferenceActivity
.Modifier and Type | -Class and Description | -
---|---|
static interface |
-NavigationFragment.Callback
-Defines the interface, a class, which should be notified about the fragment's events, must
- implement.
- |
-
android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartFragmentCallback, android.support.v7.preference.PreferenceFragmentCompat.OnPreferenceStartScreenCallback
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
ARG_PREFERENCE_ROOT
Constructor and Description | -
---|
NavigationFragment() |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.List<NavigationPreference> |
-getAllNavigationPreferences()
-Returns a list, which contains all navigation preferences, which are contained by the
- navigation.
- |
-
NavigationFragment.Callback |
-getCallback()
-Returns the callback, which is notified about the fragment's events.
- |
-
NavigationPreference |
-getNavigationPreference(int index)
-Returns the navigation preference, which corresponds to a specific index.
- |
-
int |
-getNavigationPreferenceCount()
-Returns the number of navigation preferences, which are contained by the navigation.
- |
-
NavigationPreference |
-getSelectedNavigationPreference()
-Returns the currently selected navigation preference.
- |
-
int |
-getSelectedNavigationPreferenceIndex()
-Returns the index of the navigation preference, which is currently selected, among all
- navigation preferences.
- |
-
boolean |
-isAdapterCreated()
-Returns, whether the adapter, which contains the navigation preferences, has been created
- yet, or not.
- |
-
void |
-onActivityCreated(android.os.Bundle savedInstanceState) |
-
protected PreferenceAdapter |
-onCreatePreferenceAdapter(android.support.v7.preference.PreferenceScreen preferenceScreen)
-The method, which is invoked in order to create the adapter, which is used to manage the
- fragment's preferences.
- |
-
void |
-onCreatePreferences(android.os.Bundle savedInstanceState,
- java.lang.String rootKey) |
-
android.support.v7.widget.RecyclerView |
-onCreateRecyclerView(android.view.LayoutInflater inflater,
- android.view.ViewGroup parent,
- android.os.Bundle savedInstanceState) |
-
void |
-onNavigationPreferenceAdded(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been added.
- |
-
void |
-onNavigationPreferenceRemoved(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference has been removed.
- |
-
void |
-onNavigationPreferenceSelected(NavigationPreference navigationPreference,
- android.os.Bundle arguments)
-The method, which is invoked, when a navigation preference has been selected.
- |
-
void |
-onNavigationPreferenceUnselected()
-The method, which is invoked, when a navigation preference has been unselected.
- |
-
boolean |
-onSelectNavigationPreference(NavigationPreference navigationPreference)
-The method, which is invoked, when a navigation preference is about to be selected.
- |
-
void |
-selectNavigationPreference(int index,
- android.os.Bundle arguments)
-Selects a specific navigation preference.
- |
-
void |
-setAdapterCallback(NavigationPreferenceAdapter.Callback callback)
-Sets the callback, which should be notified about the events of the adapter, which contains
- the navigation preferences.
- |
-
void |
-setCallback(NavigationFragment.Callback callback)
-Sets the callback, which should be notified about the fragment's events.
- |
-
void |
-setEnabled(boolean enabled)
-Sets, whether the navigation should be enabled, i.e.
- |
-
void |
-setSelectionColor(int color)
-Sets the background color of the currently selected navigation preference.
- |
-
getDividerColor, onCreate, onCreateAdapter, onCreateView, setDividerColor
addPreferencesFromResource, findPreference, getCallbackFragment, getListView, getPreferenceManager, getPreferenceScreen, onBindPreferences, onCreateLayoutManager, onDestroyView, onDisplayPreferenceDialog, onNavigateToScreen, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onUnbindPreferences, onViewCreated, scrollToPreference, scrollToPreference, setDivider, setDividerHeight, setPreferenceScreen, setPreferencesFromResource
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public final void setCallback(@Nullable - NavigationFragment.Callback callback)-
callback
- The callback, which should be set, as an instance of the type NavigationFragment.Callback
or
- null, if no callback should be notified@Nullable -public final NavigationFragment.Callback getCallback()-
NavigationFragment.Callback
or null, if no callback is notifiedpublic final void setAdapterCallback(@Nullable - NavigationPreferenceAdapter.Callback callback)-
callback
- The callback, which should be set, as an instance of the type NavigationPreferenceAdapter.Callback
or null, if no callback should be notifiedpublic final int getNavigationPreferenceCount()-
Integer
valuepublic final java.util.List<NavigationPreference> getAllNavigationPreferences()-
List
or an empty collection, if no navigation
- preferences are contained by the navigationpublic final NavigationPreference getNavigationPreference(int index)-
index
- The index of the navigation preference, which should be returned, among all
- navigation preferences as an Integer
valueNavigationPreference
or null, if the adapter, which contains the navigation
- preferences, has not been initialized yet@Nullable -public final NavigationPreference getSelectedNavigationPreference()-
NavigationPreference
or null, if no navigation preference is currently selectedpublic final int getSelectedNavigationPreferenceIndex()-
Integer
value or -1, if no navigation preference is selectedpublic final void selectNavigationPreference(int index, - @Nullable - android.os.Bundle arguments)-
index
- The index of the navigation preference, which should be selected, among all
- navigation preferences, as an Integer
value or -1, if no navigation
- preference should be selectedarguments
- The arguments, which should be passed to the fragment, which is associated with the
- navigation preference, as an instance of the class Bundle
or null, if no
- arguments should be passed to the fragmentpublic final void setSelectionColor(int color)-
color
- The color, which should be set, as an Integer
valuepublic final void setEnabled(boolean enabled)-
enabled
- True, if the navigation should be enabled, false otherwisepublic final boolean isAdapterCreated()-
public final boolean onSelectNavigationPreference(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onSelectNavigationPreference
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which is about to be selected, as an instance of the
- class NavigationPreference
. The navigation preference may not be nullpublic final void onNavigationPreferenceSelected(@NonNull - NavigationPreference navigationPreference, - @Nullable - android.os.Bundle arguments)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceSelected
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been selected, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullarguments
- The arguments, which should be passed to the fragment, which is associated with
- the navigation preference, as an instance of the class Bundle
or null, if
- no arguments should be passed to the fragmentpublic final void onNavigationPreferenceUnselected()-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceUnselected
in interface NavigationPreferenceAdapter.Callback
public final void onNavigationPreferenceAdded(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceAdded
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been added, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullpublic final void onNavigationPreferenceRemoved(@NonNull - NavigationPreference navigationPreference)-
NavigationPreferenceAdapter.Callback
onNavigationPreferenceRemoved
in interface NavigationPreferenceAdapter.Callback
navigationPreference
- The navigation preference, which has been removed, as an instance of the class
- NavigationPreference
. The navigation preference may not be nullpublic final void onActivityCreated(android.os.Bundle savedInstanceState)-
onActivityCreated
in class android.support.v7.preference.PreferenceFragmentCompat
public void onCreatePreferences(android.os.Bundle savedInstanceState, - java.lang.String rootKey)-
onCreatePreferences
in class android.support.v7.preference.PreferenceFragmentCompat
@NonNull -public final android.support.v7.widget.RecyclerView onCreateRecyclerView(android.view.LayoutInflater inflater, - android.view.ViewGroup parent, - android.os.Bundle savedInstanceState)-
onCreateRecyclerView
in class android.support.v7.preference.PreferenceFragmentCompat
@NonNull -protected final PreferenceAdapter onCreatePreferenceAdapter(@NonNull - android.support.v7.preference.PreferenceScreen preferenceScreen)-
AbstractPreferenceFragment
onCreatePreferenceAdapter
in class AbstractPreferenceFragment
preferenceScreen
- The preference screen, which contains the preferences, which should be managed by the
- adapter, as an instance of the class PreferenceScreen
. The preference screen
- may not be nullPreferenceAdapter
. The adapter may not be nullInterface | -Description | -
---|---|
NavigationFragment.Callback | -
- Defines the interface, a class, which should be notified about the fragment's events, must
- implement.
- |
-
Class | -Description | -
---|---|
AbstractPreferenceFragment | -
- An abstract base class for all fragments, which show multiple preferences.
- |
-
NavigationFragment | -
- A fragment, which contains the navigation of a
-PreferenceActivity . |
-
Interface | -Description | -
---|---|
NavigationListener | -
- Defines the interface, a class, which should be notified when
-NavigationPreference s are
- added or removed to/from a PreferenceActivity , must implement. |
-
NavigationPreference.Callback | -
- Defines the callback, a class, which should be notified, when the fragment, which is
- associated with a navigation preference, should be shown, must implement.
- |
-
PreferenceFragmentListener | -
- Defines the interface, a class, which should be notified when the currently shown preference
- fragment of a
-PreferenceActivity has been changed, must implement. |
-
RestoreDefaultsListener | -
- Defines the interface, a class, which should be notified, when the default values of the
- preferences, which belong to a
-PreferenceFragment , should be restored. |
-
WizardListener | -
- Defines the interface a class, which should be notified when the user navigates within a
-PreferenceActivity , which is used as wizard, by using its next-, back- and finish-button. |
-
Class | -Description | -
---|---|
NavigationPreference | -
- A preference, which allows to show a fragment within a
-PreferenceActivity when clicked. |
-
NavigationPreference.SavedState | -
- A data structure, which allows to save the internal state of a
-NavigationPreference . |
-
PreferenceActivity | -
- An activity, which provides a navigation for accessing preferences, which are grouped as
- different sections.
- |
-
PreferenceFragment | -
- A fragment, which allows to show multiple preferences.
- |
-
public class ToolbarLarge
-extends android.widget.FrameLayout
-android.widget.FrameLayout.LayoutParams
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
Constructor and Description | -
---|
ToolbarLarge(android.content.Context context)
-Creates a custom view, which may be used to visualize a large toolbar on devices with a large
- screen.
- |
-
ToolbarLarge(android.content.Context context,
- android.util.AttributeSet attributeSet)
-Creates a custom view, which may be used to visualize a large toolbar on devices with a large
- screen.
- |
-
ToolbarLarge(android.content.Context context,
- android.util.AttributeSet attributeSet,
- int defaultStyle)
-Creates a custom view, which may be used to visualize a large toolbar on devices with a large
- screen.
- |
-
Modifier and Type | -Method and Description | -
---|---|
int |
-getNavigationWidth()
-Returns the width of the navigation.
- |
-
java.lang.CharSequence |
-getTitle()
-Returns the toolbar's title.
- |
-
android.support.v7.widget.Toolbar |
-getToolbar()
-Returns the toolbar, which is used to show the title.
- |
-
void |
-hideNavigation(boolean navigationHidden)
-Hides or shows the navigation.
- |
-
boolean |
-isNavigationHidden()
-Returns, whether the navigation is hidden, or not.
- |
-
void |
-setNavigationWidth(int width)
-Sets the width of the navigation.
- |
-
void |
-setTitle(java.lang.CharSequence title)
-Sets the toolbar's title.
- |
-
void |
-setTitle(int resourceId)
-Sets the toolbar's title.
- |
-
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedState
addChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
addExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAutofillHints, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayout
public ToolbarLarge(@NonNull - android.content.Context context)-
context
- The context, the toolbar should belong to, as an instance of the class Context
. The context may not be nullpublic ToolbarLarge(@NonNull - android.content.Context context, - @Nullable - android.util.AttributeSet attributeSet)-
context
- The context, the toolbar should belong to, as an instance of the class Context
. The context may not be nullattributeSet
- The attributes of the XML tag that is inflating the preference, as an instance of the
- type AttributeSet
or ull, if no attributes are availablepublic ToolbarLarge(@NonNull - android.content.Context context, - @Nullable - android.util.AttributeSet attributeSet, - int defaultStyle)-
context
- The context, the toolbar should belong to, as an instance of the class Context
. The context may not be nullattributeSet
- The attributes of the XML tag that is inflating the preference, as an instance of the
- type AttributeSet
or null, if no attributes are availabledefaultStyle
- The default style to apply to this preference. If 0, no style will be applied (beyond
- what is included in the theme). This may either be an attribute resource, whose value
- will be retrieved from the current theme, or an explicit style resourcepublic final java.lang.CharSequence getTitle()-
CharSequence
or null, if no
- title is setpublic final void setTitle(@Nullable - java.lang.CharSequence title)-
title
- The title, which should be set, as an instance of the class CharSequence
or
- null, if no title should be setpublic final void setTitle(@StringRes - int resourceId)-
resourceId
- The resource id of the title, which should be set, as an Integer
value. The
- resource id must correspond to a valid string resource@Px -public final int getNavigationWidth()-
Integer
valuepublic final void setNavigationWidth(@Px - int width)-
width
- The width, which should be set, in pixels as an Integer
value. The width must
- be greater than 0public final boolean isNavigationHidden()-
public final void hideNavigation(boolean navigationHidden)-
navigationHidden
- True, if the navigation should be hidden, false otherwisepublic final android.support.v7.widget.Toolbar getToolbar()-
Class | -Description | -
---|---|
ToolbarLarge | -
- A custom view, which may be used to visualize a large toolbar on devices with a large screen.
- |
-
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
-Each annotation type has its own separate page with the following sections:
-Each enum has its own separate page with the following sections:
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-These links take you to the next or previous class, interface, package, or related page.
-These links show and hide the HTML frames. All pages are available with or without frames.
-The All Classes link shows all classes and interfaces except non-static nested types.
-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
-The Constant Field Values page lists the static final fields and their values.
-PreferenceGroupAdapter
in order to
- modify the appearance of preferences.PreferenceGroupAdapter
- in order to modify the appearance of preferences.PreferenceActivity
has been changed, must implement.PreferenceFragment
, should be restored.PreferenceActivity
, which is used as wizard, by using its next-, back- and finish-button.NavigationPreference.SavedState
from
- parcels.EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the back button.EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the back button when the last navigation preference
- is selected.EXTRA_SHOW_BUTTON_BAR
, this extra can also
- be specified to supply a custom text for the next button.EXTRA_SHOW_BUTTON_BAR
and
- EXTRA_SHOW_PROGRESS
, this string extra can also be specified to supply a custom
- format for showing the progress.EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON
,
- this extra can also be specified to supply a custom text for the button, which allows to
- restore the preferences' default values.EXTRA_SHOW_FRAGMENT
, this extra can also
- be specified to supply a bundle of arguments to pass to that fragment when it is instantiated
- during the initial creation of the activity.EXTRA_SHOW_FRAGMENT
, this extra can also
- be specified to supply the title to be shown for that fragment.EXTRA_SHOW_BUTTON_BAR
, this boolean extra can
- also used to specify, whether the number of the currently shown wizard step and the number of
- total steps should be shown as the bread crumb title.HideViewOnScrollAnimation
, must implement.PreferenceActivity
.NavigationPreference
s are
- added or removed to/from a PreferenceActivity
, must implement.PreferenceActivity
when clicked.PreferenceActivity
when clicked.PreferenceActivity
when clicked.PreferenceActivity
when clicked.PreferenceActivity
when clicked.NavigationPreference
.PreferenceAdapter
, which is used to visualize the navigation preferences of a PreferenceActivity
.PreferenceAdapter
, which is used to visualize the navigation
- preferences of a PreferenceActivity
.- - diff --git a/doc/javadoc/overview-summary.html b/doc/javadoc/overview-summary.html deleted file mode 100644 index b6c3697..0000000 --- a/doc/javadoc/overview-summary.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - -
Package | -Description | -
---|---|
de.mrapp.android.preference.activity | -- |
de.mrapp.android.preference.activity.adapter | -- |
de.mrapp.android.preference.activity.animation | -- |
de.mrapp.android.preference.activity.fragment | -- |
de.mrapp.android.preference.activity.view | -- |