View.ScrollTo(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the scrolled position of your view.
[Android.Runtime.Register("scrollTo", "(II)V", "GetScrollTo_IIHandler")]
public virtual void ScrollTo (int x, int y);
[<Android.Runtime.Register("scrollTo", "(II)V", "GetScrollTo_IIHandler")>]
abstract member ScrollTo : int * int -> unit
override this.ScrollTo : int * int -> unit
Parameters
- x
- Int32
the x position to scroll to
- y
- Int32
the y position to scroll to
- Attributes
Remarks
Set 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.scrollTo(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.