Udostępnij za pośrednictwem


PreferenceFragment.AddPreferencesFromResource(Int32) Method

Definition

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

[Android.Runtime.Register("addPreferencesFromResource", "(I)V", "GetAddPreferencesFromResource_IHandler")]
public virtual void AddPreferencesFromResource (int preferencesResId);
[<Android.Runtime.Register("addPreferencesFromResource", "(I)V", "GetAddPreferencesFromResource_IHandler")>]
abstract member AddPreferencesFromResource : int -> unit
override this.AddPreferencesFromResource : int -> unit

Parameters

preferencesResId
Int32

The XML resource ID to inflate.

Attributes

Remarks

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

Java documentation for android.preference.PreferenceFragment.addPreferencesFromResource(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to