Android: Suppress onClick when dragged or flicked
<p>I have a view on which I want to add an onClickListener. Trouble is that the listener fires even when the user performs a drag operation. How do I suppress on click when the user drags, and only process when it is a click without dragging?</p>

<p>For completeness, am using something like below to add the onClickListener -</p>

<pre><code>private void installClickHandler(final GraphicalView x) {
    x.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent myIntent = new Intent(getApplicationContext(), BillTablesActivity.class);
            startActivity(myIntent);
            }
        }
    });
}
</code></pre>
