addPreferencesFromResource

open fun addPreferencesFromResource(@XmlRes preferencesResId: Int)

Inflates the given XML resource and adds the preference hierarchy to the current preference hierarchy.

Parameters

preferencesResId

The XML resource ID to inflate