setPreferencesFromResource
Deprecated
Use PreferenceFragmentCompat instead
Inflates the given XML resource and replaces the current preference hierarchy (if any) with the preference hierarchy rooted at key
.
Parameters
preferencesResId
The XML resource ID to inflate
key
The preference key of the PreferenceScreen to use as the root of the preference hierarchy, or null
to use the root PreferenceScreen.