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:
> Hi,
>
> I have a View and I can drag it. It also has a onLongClick() method so it
> can respond to the long press on the screen.
>
> The problem is when I drag it , the onLongClick will also be triggered .
> Anyone have an idea to depress the long click detection when i move it .
>
> Thanks in advances.
> Shawn.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to