语言

AbsListView.CanScrollList(Int32) 方法

定义

检查列表中的项是否可以按特定方向滚动。

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

参数

direction
Int32

检查向上滚动的负数,为正值以检查向下滚动。

返回

如果列表可以按指定方向滚动,则为 true;否则为 false。

特性

注解

检查列表中的项是否可以按特定方向滚动。

Java文档android.widget.AbsListView.canScrollList(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅