Udostępnij za pośrednictwem


ScrollView.PageScroll(FocusSearchDirection) Method

Definition

Handles scrolling in response to a "page up/down" shortcut press.

[Android.Runtime.Register("pageScroll", "(I)Z", "GetPageScroll_IHandler")]
public virtual bool PageScroll (Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("pageScroll", "(I)Z", "GetPageScroll_IHandler")>]
abstract member PageScroll : Android.Views.FocusSearchDirection -> bool
override this.PageScroll : Android.Views.FocusSearchDirection -> bool

Parameters

direction
FocusSearchDirection

the scroll direction: android.view.View#FOCUS_UP to go one page up or android.view.View#FOCUS_DOWN to go one page down

Returns

true if the key event is consumed by this method, false otherwise

Attributes

Remarks

Handles scrolling in response to a "page up/down" shortcut press. This method will scroll the view by one page up or down and give the focus to the topmost/bottommost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.

Java documentation for android.widget.ScrollView.pageScroll(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