Android
android.preference
public class

android.preference.PreferenceCategory

java.lang.Object
android.preference.Preference Comparable<T>
android.preference.PreferenceGroup
android.preference.PreferenceCategory

The PreferenceCategory class is used to group Preferences and provide a disabled title above the group.

Summary

XML Attributes inherited from class android.preference.PreferenceGroup
XML Attributes inherited from class android.preference.Preference
Constants inherited from class android.preference.Preference

Public Constructors

            PreferenceCategory(Context context, AttributeSet attrs, int defStyle)
            PreferenceCategory(Context context, AttributeSet attrs)
            PreferenceCategory(Context context)

Public Methods

          boolean  isEnabled()
Whether this Preference should be enabled in the list.

Protected Methods

          boolean  onPrepareAddPreference(Preference preference)
Prepares a Preference to be added to the group.
Methods inherited from class android.preference.PreferenceGroup
Methods inherited from class android.preference.Preference
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Public Constructors

public PreferenceCategory(Context context, AttributeSet attrs, int defStyle)

public PreferenceCategory(Context context, AttributeSet attrs)

public PreferenceCategory(Context context)

Public Methods

public boolean isEnabled()

Whether this Preference should be enabled in the list.

Returns

  • Whether this preference is enabled.

Protected Methods

protected boolean onPrepareAddPreference(Preference preference)

Prepares a Preference to be added to the group.

Parameters

preference The preference to add.

Returns

  • Whether to allow adding the preference (true), or not (false).
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48