Udostępnij za pośrednictwem


RemoteViews.SetScrollPosition(Int32, Int32) Method

Definition

Equivalent to calling ListView#smoothScrollToPosition(int).

[Android.Runtime.Register("setScrollPosition", "(II)V", "GetSetScrollPosition_IIHandler")]
public virtual void SetScrollPosition (int viewId, int position);
[<Android.Runtime.Register("setScrollPosition", "(II)V", "GetSetScrollPosition_IIHandler")>]
abstract member SetScrollPosition : int * int -> unit
override this.SetScrollPosition : int * int -> unit

Parameters

viewId
Int32

The id of the view to change

position
Int32

Scroll to this adapter position

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setScrollPosition(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