[android-developers] Re: how to depress the onLongClick() when drag a view

2010-04-19 Thread grace
hi, try disabling the longclick event using public void setLongClickable (boolean longClickable) function while ur performing the drag operation and enable it after that.. so that u can have both the functionalities.. regards, Grace. On Apr 19, 11:47 am, sheng wang banxia...@gmail.com wrote:

[android-developers] Re: how to depress the onLongClick() when drag a view

2010-04-19 Thread grace
hi, try disabling the longClick event using public void setLongClickable (boolean longClickable) function while ur performing the drag operation and enable it after that.. so that u can have both the functionalities.. Regards, Grace. On Apr 19, 11:47 am, sheng wang banxia...@gmail.com wrote:

Re: [android-developers] Re: how to depress the onLongClick() when drag a view

2010-04-19 Thread sheng wang
thx for your reply but it doesn't work as will. setLongClickable() in case MotionEvent.ACTION_MOVE phrase doesn't work. But I have figure out the way. The view default implementation will cancel the long press check on ACTION_MOVE,so I just call the super.onTouchEvent to let the default