Freigeben über


View.ScrollY Property

Definition

Return the scrolled top position of this view. -or- Set the vertical scrolled position of your view.

public int ScrollY { [Android.Runtime.Register("getScrollY", "()I", "")] get; [Android.Runtime.Register("setScrollY", "(I)V", "GetSetScrollY_IHandler")] set; }
[<get: Android.Runtime.Register("getScrollY", "()I", "")>]
[<set: Android.Runtime.Register("setScrollY", "(I)V", "GetSetScrollY_IHandler")>]
member this.ScrollY : int with get, set

Property Value

The top edge of the displayed part of your view, in pixels.

Attributes

Remarks

Property getter documentation:

Return the scrolled top position of this view. This is the top edge of the displayed part of your view. You do not need to draw any pixels above it, since those are outside of the frame of your view on screen.

Java documentation for android.view.View.getScrollY().

Property setter documentation:

Set the vertical 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.setScrollY(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