Udostępnij za pośrednictwem


View.ScrollBy(Int32, Int32) Method

Definition

Move the scrolled position of your view.

[Android.Runtime.Register("scrollBy", "(II)V", "GetScrollBy_IIHandler")]
public virtual void ScrollBy (int x, int y);
[<Android.Runtime.Register("scrollBy", "(II)V", "GetScrollBy_IIHandler")>]
abstract member ScrollBy : int * int -> unit
override this.ScrollBy : int * int -> unit

Parameters

x
Int32

the amount of pixels to scroll by horizontally

y
Int32

the amount of pixels to scroll by vertically

Attributes

Remarks

Move the scrolled position of your view. This will cause a call to #onScrollChanged(int, int, int, int) and the view will be invalidated.

Java documentation for android.view.View.scrollBy(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