【问题标题】:Horizontal listview with OnScrollListener带有 OnScrollListener 的水平列表视图
【发布时间】:2014-07-01 18:51:15
【问题描述】:

我需要 2 个列表视图(垂直和水平)的同步滚动

我为水平列表视图尝试了几个库,但没有库实现 OnScrollListener()

https://github.com/MeetMe/Android-HorizontalListView

https://github.com/sephiroth74/HorizontalVariableListView

https://github.com/dinocore1/DevsmartLib-Android

当滚动水平列表时需要这个回调来滚动垂直列表...

我该怎么做?

谢谢!!

【问题讨论】:

    标签: java android xml android-listview


    【解决方案1】:

    不久前我为这个确切的东西做了一些代码。在这里查看https://github.com/slightfoot/android-tandem-scroll

    只需复制https://github.com/slightfoot/android-tandem-scroll/blob/master/Library/src/com/demondevelopers/tandemscroll/TandemScrollView.java 文件并使其扩展Horizo​​ntalScrollView。

    【讨论】:

    • 谢谢!问题:我可以替换这个“addView(layout);” xml中的代码? ?????
    • 是的。我看不出有什么理由不这样做。
    猜你喜欢
    • 2020-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-24
    • 1970-01-01
    • 2019-04-01
    相关资源
    最近更新 更多