Share via


Scroller.StartScroll Method

Definition

Overloads

StartScroll(Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point and the distance to travel.

StartScroll(Int32, Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point, the distance to travel, and the duration of the scroll.

StartScroll(Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point and the distance to travel.

[Android.Runtime.Register("startScroll", "(IIII)V", "GetStartScroll_IIIIHandler")]
public virtual void StartScroll (int startX, int startY, int dx, int dy);
[<Android.Runtime.Register("startScroll", "(IIII)V", "GetStartScroll_IIIIHandler")>]
abstract member StartScroll : int * int * int * int -> unit
override this.StartScroll : int * int * int * int -> unit

Parameters

startX
Int32

Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left.

startY
Int32

Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.

dx
Int32

Horizontal distance to travel. Positive numbers will scroll the content to the left.

dy
Int32

Vertical distance to travel. Positive numbers will scroll the content up.

Attributes

Remarks

Start scrolling by providing a starting point and the distance to travel. The scroll will use the default value of 250 milliseconds for the duration.

Java documentation for android.widget.Scroller.startScroll(int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

StartScroll(Int32, Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point, the distance to travel, and the duration of the scroll.

[Android.Runtime.Register("startScroll", "(IIIII)V", "GetStartScroll_IIIIIHandler")]
public virtual void StartScroll (int startX, int startY, int dx, int dy, int duration);
[<Android.Runtime.Register("startScroll", "(IIIII)V", "GetStartScroll_IIIIIHandler")>]
abstract member StartScroll : int * int * int * int * int -> unit
override this.StartScroll : int * int * int * int * int -> unit

Parameters

startX
Int32

Starting horizontal scroll offset in pixels. Positive numbers will scroll the content to the left.

startY
Int32

Starting vertical scroll offset in pixels. Positive numbers will scroll the content up.

dx
Int32

Horizontal distance to travel. Positive numbers will scroll the content to the left.

dy
Int32

Vertical distance to travel. Positive numbers will scroll the content up.

duration
Int32

Duration of the scroll in milliseconds.

Attributes

Remarks

Start scrolling by providing a starting point, the distance to travel, and the duration of the scroll.

Java documentation for android.widget.Scroller.startScroll(int, int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to