语言

Scroller 构造函数

定义

重载

名称 说明
Scroller(Context)

使用默认持续时间和内插器创建滚动器。

Scroller(Context, IInterpolator)

使用指定的内插器创建滚动器。

Scroller(IntPtr, JniHandleOwnership)

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

Scroller(Context, IInterpolator, Boolean)

使用指定的内插器创建滚动器。

Scroller(Context)

使用默认持续时间和内插器创建滚动器。

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

参数

context
Context

背景

属性

注解

使用默认持续时间和内插器创建滚动器。

Java文档android.widget.Scroller.Scroller(android.content.Context)。

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

适用于

Scroller(Context, IInterpolator)

使用指定的内插器创建滚动器。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;)V", "")]
public Scroller(Android.Content.Context? context, Android.Views.Animations.IInterpolator? interpolator);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;)V", "")>]
new Android.Widget.Scroller : Android.Content.Context * Android.Views.Animations.IInterpolator -> Android.Widget.Scroller

参数

context
Context

背景

interpolator
IInterpolator

内插器

属性

注解

使用指定的内插器创建滚动器。 如果内插器为 null,将使用默认的(粘性)内插器。 “Flywheel”行为将对面向 Honeycomb 或较新的应用生效。

Java文档android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator)。

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

适用于

Scroller(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

Scroller(Context, IInterpolator, Boolean)

使用指定的内插器创建滚动器。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;Z)V", "")]
public Scroller(Android.Content.Context? context, Android.Views.Animations.IInterpolator? interpolator, bool flywheel);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;Z)V", "")>]
new Android.Widget.Scroller : Android.Content.Context * Android.Views.Animations.IInterpolator * bool -> Android.Widget.Scroller

参数

context
Context

背景

interpolator
IInterpolator

内插器

flywheel
Boolean

boolean

属性

注解

使用指定的内插器创建滚动器。 如果内插器为 null,将使用默认的(粘性)内插器。 指定是否支持动态“飞轮”行为。

Java文档android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator, boolean)。

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

适用于