PreferenceCategorypublic class PreferenceCategory extends PreferenceGroup Used to group {@link Preference} objects
and provide a disabled title above the group. |
Fields Summary |
---|
private static final String | TAG |
Methods Summary |
---|
public boolean | isEnabled()
return false;
| protected boolean | onPrepareAddPreference(Preference preference)
if (preference instanceof PreferenceCategory) {
throw new IllegalArgumentException(
"Cannot add a " + TAG + " directly to a " + TAG);
}
return super.onPrepareAddPreference(preference);
|
|