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 implementation takes effect.




2010/4/19 grace <[email protected]>

> 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 <[email protected]> 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%[email protected]>
> > 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to