ImageSwitcher 构造函数

定义

重载

名称 说明
ImageSwitcher(Context)

创建新的空 ImageSwitcher。

ImageSwitcher(Context, IAttributeSet)

使用指定的集属性为给定上下文创建新的空 ImageSwitcher。

ImageSwitcher(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

ImageSwitcher(Context)

创建新的空 ImageSwitcher。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public ImageSwitcher(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.ImageSwitcher : Android.Content.Context -> Android.Widget.ImageSwitcher

参数

context
Context

应用程序的环境

属性

注解

创建新的空 ImageSwitcher。

Java文档android.widget.ImageSwitcher.ImageSwitcher(android.content.Context)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ImageSwitcher(Context, IAttributeSet)

使用指定的集属性为给定上下文创建新的空 ImageSwitcher。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ImageSwitcher(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.ImageSwitcher : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.ImageSwitcher

参数

context
Context

应用程序环境

attrs
IAttributeSet

特性集合

属性

注解

使用指定的集属性为给定上下文创建新的空 ImageSwitcher。

Java文档android.widget.ImageSwitcher.ImageSwitcher(android.content.Context, android.util.AttributeSet)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ImageSwitcher(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected ImageSwitcher(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.ImageSwitcher : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.ImageSwitcher

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于