2013-10-02

Remove/hide a preference from the screen

I've found in stackoverflow how to remove/hide a Preference from a PreferenceScreen.

The one I found more useful is the following:

PreferenceScreen screen = getPreferenceScreen();
Preference pref = getPreferenceManager().findPreference("mypreference");
screen.removePreference(pref);

No hay comentarios: