Udostępnij za pośrednictwem


PreferenceActivity.AddPreferencesFromResource(Int32) Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("addPreferencesFromResource", "(I)V", "GetAddPreferencesFromResource_IHandler")]
[System.Obsolete("deprecated")]
public virtual void AddPreferencesFromResource (int preferencesResId);
[<Android.Runtime.Register("addPreferencesFromResource", "(I)V", "GetAddPreferencesFromResource_IHandler")>]
[<System.Obsolete("deprecated")>]
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.

This member is deprecated. This function is not relevant for a modern fragment-based PreferenceActivity.

Java documentation for android.preference.PreferenceActivity.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