View.ScrollBy(Int32, Int32) Method

Definition

Move the scrolled position of your view.

C#
[Android.Runtime.Register("scrollBy", "(II)V", "GetScrollBy_IIHandler")]
public virtual void ScrollBy (int x, int y);

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35