Share via


View.CanScrollHorizontally(Int32) Method

Definition

Check if this view can be scrolled horizontally in a certain direction.

[Android.Runtime.Register("canScrollHorizontally", "(I)Z", "GetCanScrollHorizontally_IHandler")]
public virtual bool CanScrollHorizontally (int direction);
[<Android.Runtime.Register("canScrollHorizontally", "(I)Z", "GetCanScrollHorizontally_IHandler")>]
abstract member CanScrollHorizontally : int -> bool
override this.CanScrollHorizontally : int -> bool

Parameters

direction
Int32

Negative to check scrolling left, positive to check scrolling right.

Returns

true if this view can be scrolled in the specified direction, false otherwise.

Attributes

Remarks

Check if this view can be scrolled horizontally in a certain direction.

This is without regard to whether the view is enabled or not, or if it will scroll in response to user input or not.

Java documentation for android.view.View.canScrollHorizontally(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