语言

AdapterView<T> 构造函数

定义

重载

名称 说明
AdapterView<T>(Context)
AdapterView<T>(Context, IAttributeSet)
AdapterView<T>(IntPtr, JniHandleOwnership)

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

AdapterView<T>(Context, IAttributeSet, Int32)

AdapterView<T>(Context)

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public AdapterView(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)> : Android.Content.Context -> Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)>

参数

context
Context
属性

注解

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

适用于

AdapterView<T>(Context, IAttributeSet)

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

参数

context
Context
属性

注解

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

适用于

AdapterView<T>(IntPtr, JniHandleOwnership)

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

public AdapterView(IntPtr handle, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)> : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)>

参数

handle
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 handle

注解

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

适用于

AdapterView<T>(Context, IAttributeSet, Int32)

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public AdapterView(Android.Content.Context context, Android.Util.IAttributeSet attrs, int defStyle);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)> : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.AdapterView<'T (requires 'T :> Android.Widget.IAdapter)>

参数

context
Context
defStyle
Int32
属性

注解

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

适用于