Compartilhar via


Preference.SetIcon(Int32) Method

Definition

Sets the icon for this Preference with a resource ID.

[Android.Runtime.Register("setIcon", "(I)V", "GetSetIcon_IHandler")]
public virtual void SetIcon (int iconResId);
[<Android.Runtime.Register("setIcon", "(I)V", "GetSetIcon_IHandler")>]
abstract member SetIcon : int -> unit
override this.SetIcon : int -> unit

Parameters

iconResId
Int32

the icon as a resource ID

Attributes

Remarks

Sets the icon for this Preference with a resource ID.

Java documentation for android.preference.Preference.setIcon(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

See also