ListView listener problems

by tatebn » Mon, 30 Aug 2010 22:53:09 GMT


Sponsored Links
 I'm using a ListAction and I'm having some trouble with my listeners.
I'm using onListItemClick to catch any item clicks, which works fine
unless I add an OnLongClickListener to the list items.  In that case
the long click works but the short click doesn't register.  I've tried
adding an OnClickListener to the items individually as I had done with
the long click.  This works, but the regular click fires every time
the long click does.  How do I keep these things separate?

Thanks,
Brandon

--



ListView listener problems

by William Ferguson » Tue, 31 Aug 2010 06:27:39 GMT


 Return false from onLongClick if you have handled the click as a long
click.




--


Sponsored Links


Other Threads

1. c++ on android

Hi,
    right now, all app development are based on java and sdk, anyone tried
to use c++, i.e. compiled into so, and modify jni to access it? is there a
way to using c++ in current Android Market App?

thanks

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

2. How to launch a standard application in adb shell

Use "adb install <local path>" to install, "adb uninstall <package name>" to
uninstall.

And use "adb shell am start ..." to launch activities.












-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to use Eclipse to debug x86 target?

4. Accessing a server through wifi

5. Issues with debugging using Ganymede Eclipse

6. Voice Recognition in API demos crashing

7. android sqlite question