次の方法で共有


View.CanScrollVertically(Int32) Method

Definition

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

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

Parameters

direction
Int32

Negative to check scrolling up, positive to check scrolling down.

Returns

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

Attributes

Remarks

Check if this view can be scrolled vertically 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.canScrollVertically(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