共用方式為


ListView.SmoothScrollByOffset(Int32) Method

Definition

Smoothly scroll to the specified adapter position offset.

[Android.Runtime.Register("smoothScrollByOffset", "(I)V", "GetSmoothScrollByOffset_IHandler")]
public virtual void SmoothScrollByOffset (int offset);
[<Android.Runtime.Register("smoothScrollByOffset", "(I)V", "GetSmoothScrollByOffset_IHandler")>]
abstract member SmoothScrollByOffset : int -> unit
override this.SmoothScrollByOffset : int -> unit

Parameters

offset
Int32

The amount to offset from the adapter position to scroll to.

Attributes

Remarks

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

Java documentation for android.widget.ListView.smoothScrollByOffset(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