aChartEngine, GraphicalView OnClickListener not working

前端 未结 2 623
遥遥无期
遥遥无期 2021-01-20 22:02

I\'m new to android and am using aChartEngine to create a bar chart. I want to capture the x and y values when a user clicks on the chart. I have looked at the demos from aC

相关标签:
2条回答
  • 2021-01-20 22:37

    Can you check your code for some definition of an object like XYMultipleSeriesRenderer? Maybe you forgot to set the setClickEnabled method to true?!

    Or maybe you should try:

    setOnTouchListener 
    

    with the method:

    public boolean onTouch(View v, MotionEvent event)
    

    It works for me.

    0 讨论(0)
  • 2021-01-20 22:38

    Change the value of parameter of setSelectableBuffer method to a bigger number.

    0 讨论(0)
提交回复
热议问题