Compartilhar via


RemoteViews.SetImageViewIcon(Int32, Icon) Método

Definição

Equivalente a chamar ImageView#setImageIcon(Icon)

[Android.Runtime.Register("setImageViewIcon", "(ILandroid/graphics/drawable/Icon;)V", "GetSetImageViewIcon_ILandroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual void SetImageViewIcon (int viewId, Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setImageViewIcon", "(ILandroid/graphics/drawable/Icon;)V", "GetSetImageViewIcon_ILandroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetImageViewIcon : int * Android.Graphics.Drawables.Icon -> unit
override this.SetImageViewIcon : int * Android.Graphics.Drawables.Icon -> unit

Parâmetros

viewId
Int32

O id do modo de exibição cujo bitmap deve ser alterado

icon
Icon

O novo ícone do ImageView

Atributos

Comentários

Documentação Java para android.widget.RemoteViews.setImageViewIcon(int, android.graphics.drawable.Icon).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usado de acordo com os termos descritos na Creative Commons 2.5 Attribution License.

Aplica-se a