Is it possible to use dragging events and click event on the same Textview?
<p>In my application I got a requirement to use both click and drag events on the same textView.</p>

<p>I have written the following code:</p>

<pre><code>    switch(event.getAction())
        {
        case MotionEvent.ACTION_UP:
//          TextDialog.setVisibility(View.VISIBLE);
            break;
        case MotionEvent.ACTION_DOWN: {
            disallowTouch(parent, true);
           int downX = (int)event.getX();
           int downY = (int)event.getY();
            return false; // allow other events like Click to be processed
        }


        case MotionEvent.ACTION_MOVE:
                                        int x = (int)event.getRawX();
                                        int y= (int)event.getRawY();



                                        layoutParams.leftMargin = x - 50;
                                        layoutParams.topMargin = y - 70;


                                        tvText.setLayoutParams(layoutParams);
                                        break;


              default:
                                        break;
        }


        }
         return true;
    }

@Override
public void onClick(View v) {
    // TODO Auto-generated method stub
    TextDialog.setVisibility(View.VISIBLE);
}
</code></pre>

<p>But only Action_Move is working, onClick event is not getting fired.</p>

<p>I just want to display a display a dialog on clicking on the TextView.</p>

<p>How can I achieve this?</p>
