Android.Preferences.PreferenceActivity Members

The members of Android.Preferences.PreferenceActivity are listed below.

See Also: Inherited members from Android.App.ListActivity

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
ExtraNoHeadersstring. When starting this activity, the invoking Intent can contain this extra boolean that the header list should not be displayed.
const
ExtraShowFragmentstring. When starting this activity, the invoking Intent can contain this extra string to specify which fragment should be initially displayed.
const
ExtraShowFragmentArgumentsstring. When starting this activity and using PreferenceActivity.ExtraShowFragment, 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 PreferenceActivity.
const
ExtraShowFragmentShortTitlestring. When starting this activity and using PreferenceActivity.ExtraShowFragment, this extra can also be specify to supply the short title to be shown for that fragment.
const
ExtraShowFragmentTitlestring. When starting this activity and using PreferenceActivity.ExtraShowFragment, this extra can also be specify to supply the title to be shown for that fragment.
const
HeaderIdUndefinedlong (-1). Default value for NoType:android/preference/PreferenceActivity$Header;Href=../../../reference/android/preference/PreferenceActivity.Header.html#id indicating that no identifier value is set.

Public Properties

[read-only]
HasHeadersbool. Returns true if this activity is currently showing the header list.
[read-only]
IsMultiPanebool. Returns true if this activity is showing multiple panes -- the headers and a preference fragment.
[read-only]
PreferenceManagerPreferenceManager. Returns the Android.Preferences.PreferenceManager used by this activity.
PreferenceScreenPreferenceScreen. Gets the root of the preference hierarchy that this activity is showing.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddPreferencesFromIntent(Android.Content.Intent)
Adds preferences from activities that match the given Android.Content.Intent.
AddPreferencesFromResource(int)
Inflates the given XML resource and adds the preference hierarchy to the current preference hierarchy.
FindPreference(Java.Lang.ICharSequence) : Preference
Finds a Android.Preferences.Preference based on its key.
FindPreference(string) : Preference
Documentation for this section has not yet been entered.
FinishPreferencePanel(Android.App.Fragment, Android.App.Result, Android.Content.Intent)
Called by a preference panel fragment to finish itself.
InvalidateHeaders()
Call when you need to change the headers being displayed.
LoadHeadersFromResource(int, IList<PreferenceActivity.Header>)
Documentation for this section has not yet been entered.
OnBuildHeaders(IList<PreferenceActivity.Header>)
Documentation for this section has not yet been entered.
OnBuildStartFragmentIntent(string, Android.OS.Bundle, int, int) : Android.Content.Intent
Called by PreferenceActivity.StartWithFragment(string, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle) when in single-pane mode, to build an Intent to launch a new activity showing the selected fragment.
OnGetInitialHeader() : PreferenceActivity.Header
Called to determine the initial header to be shown.
OnGetNewHeader() : PreferenceActivity.Header
Called after the header list has been updated (PreferenceActivity.onBuildHeaders(java.util.List<android.preference.PreferenceActivity.Header>) has been called and returned due to PreferenceActivity.InvalidateHeaders) to specify the header that should now be selected.
OnHeaderClick(PreferenceActivity.Header, int)
Called when the user selects an item in the header list.
OnIsHidingHeaders() : bool
Called to determine whether the header list should be hidden.
OnIsMultiPane() : bool
Called to determine if the activity should run in multi-pane mode.
OnPreferenceStartFragment(PreferenceFragment, Preference) : bool
Called when the user has clicked on a Preference that has a fragment class name associated with it.
OnPreferenceTreeClick(PreferenceScreen, Preference) : bool
SetListFooter(Android.Views.View)
Set a footer that should be shown at the bottom of the header list.
SetParentTitle(Java.Lang.ICharSequence, Java.Lang.ICharSequence, Android.Views.View.IOnClickListener)
Should be called after onCreate to ensure that the breadcrumbs, if any, were created.
SetParentTitle(string, string, Android.Views.View.IOnClickListener)
Documentation for this section has not yet been entered.
ShowBreadCrumbs(Java.Lang.ICharSequence, Java.Lang.ICharSequence)
Change the base title of the bread crumbs for the current preferences.
ShowBreadCrumbs(string, string)
Documentation for this section has not yet been entered.
StartPreferenceFragment(Android.App.Fragment, bool)
Start a new fragment.
StartPreferencePanel(string, Android.OS.Bundle, int, Java.Lang.ICharSequence, Android.App.Fragment, int)
Start a new fragment containing a preference panel.
StartPreferencePanel(string, Android.OS.Bundle, int, string, Android.App.Fragment, int)
Documentation for this section has not yet been entered.
StartWithFragment(string, Android.OS.Bundle, Android.App.Fragment, int)
Like PreferenceActivity.StartWithFragment(string, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle, Android.OS.Bundle) but uses a 0 titleRes.
StartWithFragment(string, Android.OS.Bundle, Android.App.Fragment, int, int, int)
Start a new instance of this activity, showing only the given preference fragment.
SwitchToHeader(PreferenceActivity.Header)
When in two-pane mode, switch to the fragment pane to show the given preference fragment.
SwitchToHeader(string, Android.OS.Bundle)
When in two-pane mode, switch the fragment pane to show the given preference fragment.

Protected Methods

IsValidFragment(string) : bool
Subclasses should override this method and verify that the given fragment is a valid type to be attached to this activity.