how to depress the onLongClick() when drag a view

by sheng wang » Mon, 19 Apr 2010 14:47:24 GMT


Sponsored Links
 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.

--



how to depress the onLongClick() when drag a view

by grace » Mon, 19 Apr 2010 16:28:42 GMT


 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.



>


Sponsored Links


how to depress the onLongClick() when drag a view

by grace » Mon, 19 Apr 2010 16:30:44 GMT


 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.



>



Other Threads

1. Can not receive multicast packets

Hi,

I am tring to using UPnP on android.
I can send multicast packets out, but I can not receive any multicast
packets from other devices.

There is a test program.
http://www.zippyshare.com/v/75729607/file.html

Can any one help me to check what problem is?
Thanks.

--~--~---------~--~----~------------~-------~--~----~

2. Android sdk sources

Why android sdk don't include sources for platforms?

It's require a lot of time to get proper sources from git from
different parts.

It's will be better if sdk package will include java sources of base
framework at least.




--~--~---------~--~----~------------~-------~--~----~

3. Alternative way of dealing with 10% payment declined messages ...

4. About Context Menu

5. {{--}}SLIM BEAUTY KEEP HER GOING{{--}}

6. Parent activity not started after child finish

7. Is it possible to theme the activity animation?