MPAndroidChart中MyMarkerView滑动后消失设置

1.加监听

chart.setOnChartGestureListener(new OnChartGestureListener()

2.在onChartGestureEnd的方法中

@Override
public void onChartGestureEnd(MotionEvent me, ChartTouchListener.ChartGesture lastPerformedGesture) {
    if (lastPerformedGesture != ChartTouchListener.ChartGesture.SINGLE_TAP)
        chart.highlightValues(null);

}
判断滑动后,且没有单击


你可能感兴趣的:(问题一览)