title: OnLongClickListener not working with achartengine
body: <p>I am working with achartengine and I want to activate Action Mode in Action Bar when I Long-Click on the chart. But the OnLongClickListener is not working, I have searched everywhere I tried almost everything but I can't get it working and I don't know why. Here is my code:</p>
  
  <pre><code>mChartView.setLongClickable(true);
  mChartView.setOnLongClickListener(new OnLongClickListener() {
  
          @Override
          public boolean onLongClick(View v) {
              Log.i("ClickListener", "CLICK");
              return false;
          }
  
  });
  </code></pre>
  
  <p>But the event is never called, I think it is because the chart is scrollable but doesn't make sense. I tried whit OnClick and also doesn't work. The only one which is working is OnTouch but I can't get the behaviour of Long-Press.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Or maybe is any way of get the actual state of the touchscreen state, on this way, I can put a "timer" until it reaches for example 1000mS but only while the touchscreen is touched, because inside the onTouch event I can only know the state of the touchscreen when the event ocurred, no matter which is the current state.</p>
  
  <p>Ok, here some code for a line chart:</p>
  
  <pre><code>private static XYSeries input1;
  private static XYMultipleSeriesDataset mDataset;
  private static XYSeriesRenderer renderer1;
  private static XYMultipleSeriesRenderer mRenderer;
  private static GraphicalView mChartView;
  
  mRenderer = new XYMultipleSeriesRenderer();
          renderer1 = new XYSeriesRenderer();
  
          mRenderer.setOrientation(Orientation.HORIZONTAL);
          mRenderer.addSeriesRenderer(renderer1);
          mRenderer.setXAxisMax(10);
          mRenderer.setYAxisMax(10);
          mRenderer.setAxesColor(Color.WHITE);
          mRenderer.setLabelsColor(Color.WHITE);
          mRenderer.setShowGrid(true);
  
          input1 = new XYSeries("Linea");
  
          mDataset = new XYMultipleSeriesDataset();
          mDataset.addSeries(input1);
  
          renderer1.setColor(Color.WHITE);
  
          input1.add(4, 7);   
          input1.add(7, 3);   
          input1.add(8, 6);   
          input1.add(9, 2);
  
          mChartView = ChartFactory.getLineChartView(this, mDataset, mRenderer);
          setContentView(mChartView);
  
          mChartView.setLongClickable(true);
          mChartView.setOnLongClickListener(new OnLongClickListener() {
  
              @Override
              public boolean onLongClick(View v) {
                  Log.i("Click", "LONG CLICKED CHART");
                  return false;
              }
  
          });
  </code></pre>
  
  <p>I am trying to do the Long-Click with onTouch because I realised that if I slide the graph it will be taked as Long-Click also, so I have to take a Long-Click BUT if I don't slide the graph.</p>