search

Home  >  Q&A  >  body text

java - android actitvty里面两个一模一样的listview滚动同步

一个activity均分左右两部分 一边一个listview 里面的内容一样,怎么实现滑动一个listview 另外一个也同步滑动呢?

PHP中文网PHP中文网2831 days ago571

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 17:51:17

    You can try some of the methods mentioned above, or use a trickier approach, using only one listview to simulate two

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:51:17

    Monitor two listviews and move the other one in the monitor. I haven’t tried it specifically. You have to try it yourself. How to write monitoring, you can refer to the following link
    http://stackoverflow.com/questions/16791100/detect-scroll-up-scroll-down-in-listview

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:51:17

    I can only give you a reference: https://github.com/jpardogo/ListBuddies
    Auto-scrolling dual-column ListView. The scrolling speeds of the two ListViews are inconsistent and there is a parallax effect

    reply
    0
  • Cancelreply