Aracılığıyla paylaş


Preference.Icon Property

Definition

Returns the icon of this Preference. -or- Sets the icon for this Preference with a Drawable.

public virtual Android.Graphics.Drawables.Drawable? Icon { [Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Drawable;", "GetGetIconHandler")] get; [Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")] set; }
[<get: Android.Runtime.Register("getIcon", "()Landroid/graphics/drawable/Drawable;", "GetGetIconHandler")>]
[<set: Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")>]
member this.Icon : Android.Graphics.Drawables.Drawable with get, set

Property Value

the icon

Attributes

Remarks

Property getter documentation:

Returns the icon of this Preference.

Java documentation for android.preference.Preference.getIcon().

Property setter documentation:

Sets the icon for this Preference with a Drawable. This icon will be placed into the ID android.R.id#icon within the View created by #onCreateView(ViewGroup).

Java documentation for android.preference.Preference.setIcon(android.graphics.drawable.Drawable).

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