Udostępnij za pośrednictwem


RemoteViews.SetRelativeScrollPosition(Int32, Int32) Method

Definition

Equivalent to calling ListView#smoothScrollByOffset(int).

[Android.Runtime.Register("setRelativeScrollPosition", "(II)V", "GetSetRelativeScrollPosition_IIHandler")]
public virtual void SetRelativeScrollPosition (int viewId, int offset);
[<Android.Runtime.Register("setRelativeScrollPosition", "(II)V", "GetSetRelativeScrollPosition_IIHandler")>]
abstract member SetRelativeScrollPosition : int * int -> unit
override this.SetRelativeScrollPosition : int * int -> unit

Parameters

viewId
Int32

The id of the view to change

offset
Int32

Scroll by this adapter position offset

Attributes

Remarks

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