【问题标题】:Nativescript RadListView get scroll YNativescript RadListView 获取滚动 Y
【发布时间】:2016-04-28 12:42:51
【问题描述】:

我正在使用带有 Telerik 的 Nativescript,我需要获取 RadListView 的滚动位置,因为我需要知道滚动后用户屏幕上的第一个可见项目是什么项目。

是否有可能使用 nativescript 或其中的本机 ios/android 代码来执行此操作?

【问题讨论】:

    标签: nativescript nativescript-telerik-ui


    【解决方案1】:

    这实际上取决于您计划如何跟踪它;

    您可以使用 itemSwipeProgressChanged、itemSwipeProgressStarted、itemSwipeProgressEnded 事件,该事件将为您提供已滚动到视图中的项目的 itemIndex。 ..

    【讨论】:

    • 这些功能仅在我向左或向右滑动时触发,而不是在我向上或向下滚动时触发。您在另一个主题中的回答促使我从 1.6.3 更新到 2.0.0,现在我可以使用 element.getLocationRelativeTo() link
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-01
    • 2019-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多