Android.Preferences.Preference Class
Represents the basic Preference UI building block displayed by a Android.Preferences.PreferenceActivity in the form of a Android.Widget.ListView.

See Also: Preference Members

Syntax

[Android.Runtime.Register("android/preference/Preference", DoNotGenerateAcw=true)]
public class Preference : Java.Lang.Object, Java.Lang.IComparable, IDisposable

Remarks

Represents the basic Preference UI building block displayed by a Android.Preferences.PreferenceActivity in the form of a Android.Widget.ListView. This class provides the Android.Views.View to be displayed in the activity and associates with a Android.Content.ISharedPreferences to store/retrieve the preference data.

When specifying a preference hierarchy in XML, each element can point to a subclass of Android.Preferences.Preference, similar to the view hierarchy and layouts.

This class contains a key that will be used as the key into the Android.Content.ISharedPreferences. It is up to the subclass to decide how to store the value.

Developer Guides

For information about building a settings UI with Preferences, read the Settings guide.

[Android Documentation]

Requirements

Namespace: Android.Preferences
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1