我需要 2 个 listView 的同步滚动(垂直和水平)
我尝试了几个用于水平 ListView 的库,但没有库实现 OnScrollListener()
https://github.com/MeetMe/Android-HorizontalListView
https://github.com/sephiroth74/HorizontalVariableListView
https://github.com/dinocore1/DevsmartLib-Android
当滚动水平列表时需要此回调来滚动垂直列表...
我该怎么做?
谢谢!!
最佳答案
不久前我为这件事编写了一些代码。在这里查看 https://github.com/slightfoot/android-tandem-scroll
只需复制 https://github.com/slightfoot/android-tandem-scroll/blob/master/Library/src/com/demondevelopers/tandemscroll/TandemScrollView.java文件并使其扩展 HorizontalScrollView。
关于java - 带有 OnScrollListener 的水平 ListView ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24517327/