我想在LineChart
(MPAndroidChart library)上进行以下触摸互动:
Ymin
和Ymax
设置新值(不更改比例)。基本上是一个"滑动窗口"在图表上。 我创建了一个OnChartGestureListener
,最初只对onChartTranslate()
作出反应,据说是拖拽监听器。我在拖动过程中看到下面记录的信息,但是没有调用监听器。我是否必须实施onChartGestureStart()
和onChartGestureEnd()
来捕获拖拽信息?
05-14 14:39:23.011 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 3 ms, average: 4 ms, cycles: 477
05-14 14:39:23.031 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 7 ms, average: 4 ms, cycles: 478
05-14 14:39:23.050 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 5 ms, average: 4 ms, cycles: 479
05-14 14:39:23.086 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 4 ms, average: 4 ms, cycles: 480
05-14 14:39:23.133 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 4 ms, average: 4 ms, cycles: 481
05-14 14:39:23.174 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 4 ms, average: 4 ms, cycles: 482
05-14 14:39:23.216 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 5 ms, average: 4 ms, cycles: 483
05-14 14:39:23.256 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 4 ms, average: 4 ms, cycles: 484
05-14 14:39:23.298 17319-17319/io.aeroscope.aeroscope I/MPAndroidChart: Drawtime: 5 ms, average: 4 ms, cycles: 485