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
属性

注解

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

适用于 . 的 android.widget.Scroller.Scroller(android.content.Context)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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 或较新的应用生效。

适用于 . 的 android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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
属性

注解

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

适用于 . 的 android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator, boolean)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于