Sdílet prostřednictvím


AbsListView.ScrollListBy(Int32) Method

Definition

Scrolls the list items within the view by a specified number of pixels.

[Android.Runtime.Register("scrollListBy", "(I)V", "GetScrollListBy_IHandler")]
public virtual void ScrollListBy (int y);
[<Android.Runtime.Register("scrollListBy", "(I)V", "GetScrollListBy_IHandler")>]
abstract member ScrollListBy : int -> unit
override this.ScrollListBy : int -> unit

Parameters

y
Int32

the amount of pixels to scroll by vertically

Attributes

Remarks

Scrolls the list items within the view by a specified number of pixels.

The actual amount of scroll is capped by the list content viewport height which is the list height minus top and bottom paddings minus one pixel.

Java documentation for android.widget.AbsListView.scrollListBy(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

See also