AbsListView.SmoothScrollToPosition Method

Definition

Overloads

SmoothScrollToPosition(Int32, Int32)

Smoothly scroll to the specified adapter position.

SmoothScrollToPosition(Int32)

Smoothly scroll to the specified adapter position.

SmoothScrollToPosition(Int32, Int32)

Smoothly scroll to the specified adapter position.

[Android.Runtime.Register("smoothScrollToPosition", "(II)V", "GetSmoothScrollToPosition_IIHandler")]
public virtual void SmoothScrollToPosition (int position, int boundPosition);
[<Android.Runtime.Register("smoothScrollToPosition", "(II)V", "GetSmoothScrollToPosition_IIHandler")>]
abstract member SmoothScrollToPosition : int * int -> unit
override this.SmoothScrollToPosition : int * int -> unit

Parameters

position
Int32

Scroll to this adapter position.

boundPosition
Int32

Do not scroll if it would move this adapter position out of view.

Attributes

Remarks

Smoothly scroll to the specified adapter position. The view will scroll such that the indicated position is displayed, but it will stop early if scrolling further would scroll boundPosition out of view.

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

SmoothScrollToPosition(Int32)

Smoothly scroll to the specified adapter position.

[Android.Runtime.Register("smoothScrollToPosition", "(I)V", "GetSmoothScrollToPosition_IHandler")]
public virtual void SmoothScrollToPosition (int position);
[<Android.Runtime.Register("smoothScrollToPosition", "(I)V", "GetSmoothScrollToPosition_IHandler")>]
abstract member SmoothScrollToPosition : int -> unit
override this.SmoothScrollToPosition : int -> unit

Parameters

position
Int32

Scroll to this adapter position.

Attributes

Remarks

Smoothly scroll to the specified adapter position. The view will scroll such that the indicated position is displayed.

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