RemoteViews.SetIcon 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SetIcon(Int32, String, Icon) |
在此 RemoteViews 的布局中,调用采用一个图标的方法。 |
| SetIcon(Int32, String, Icon, Icon) |
在此 RemoteViews 的布局中,调用采用一个图标的方法。 |
SetIcon(Int32, String, Icon)
在此 RemoteViews 的布局中,调用采用一个图标的方法。
[Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual void SetIcon(int viewId, string? methodName, Android.Graphics.Drawables.Icon? value);
[<Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetIcon : int * string * Android.Graphics.Drawables.Icon -> unit
override this.SetIcon : int * string * Android.Graphics.Drawables.Icon -> unit
参数
- viewId
- Int32
要对其调用方法的视图的 ID。
- methodName
- String
要调用的方法的名称。
- value
- Icon
要 android.graphics.drawable.Icon 传递的方法。
- 特性
注解
Java文档android.widget.RemoteViews.setIcon(int, java.lang.String, android.graphics.drawable.Icon)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SetIcon(Int32, String, Icon, Icon)
在此 RemoteViews 的布局中,调用采用一个图标的方法。
[Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)]
public virtual void SetIcon(int viewId, string methodName, Android.Graphics.Drawables.Icon? notNight, Android.Graphics.Drawables.Icon? night);
[<Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)>]
abstract member SetIcon : int * string * Android.Graphics.Drawables.Icon * Android.Graphics.Drawables.Icon -> unit
override this.SetIcon : int * string * Android.Graphics.Drawables.Icon * Android.Graphics.Drawables.Icon -> unit
参数
- viewId
- Int32
要对其调用方法的视图的 ID。
- methodName
- String
要调用的方法的名称。
- notNight
- Icon
当视图的配置设置为
- night
- Icon
当视图的配置设置为
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。