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. EditText in Honeycomb

I posted about this over at Stack Overflow but no joy yet, so I'm
expanding my search for help here. Perhaps it's a bug but I don't want
to go there just yet. Here's the problem as I described it there:

I have an application that uses an internal ime (meaning the ime is
just code within the application and not a true ime). I use this ime
panel to enter/edit an editText. Everything works fine up to Froyo (I
have not tested under Gingerbread). On Honeycomb, however, I can input
text and edit it but no cursor or text highlight is displayed! Does
anyone know how to work around this? I'd rather not fork my code to a
special Honeycomb version just to correct this one problem.

I have explicitly set the xml cursorVisible element to true and then
set it to true with setCursorVisible in the code but that doesn't
help.

-- 

2. Nexus S GRI54 cannot update to 2.3.4

Hi all,

I am using Nexus S with Build Number GRI54, Baseband version
I9023XXKB3.
And I received the update notification Today.
After I push update and waiting, I saw a triangle with exclamation
mark during OTA.
I hold the power button and volume up button at the same time, and
screen show that update had an error 7.

Is GRI54 cannot update to 2.3.4?

-- 

3. Error initializing Evernote API

4. Developer Console error

5. Using a wave file as audio input

6. Code coverage with Android Application

7. Mobie Network Receiver