inflateFromResource
open fun inflateFromResource(@NonNull context: Context, resId: Int, @Nullable rootPreferences: PreferenceScreen): PreferenceScreen(source)
Inflates a preference hierarchy from XML. If a preference hierarchy is given, the new preference hierarchies will be merged in. Used by Settings.
Return
The root hierarchy (if one was not provided, the new hierarchy's root)
Parameters
context
The context of the resource
resId
The resource ID of the XML to inflate
rootPreferences
Optional existing hierarchy to merge the new hierarchies into.