HorizontalScrollView.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_LEFT to go one page left or android.view.View#FOCUS_RIGHT to go one page right

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 left or right and give the focus to the leftmost/rightmost 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.HorizontalScrollView.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