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?



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


Sponsored Links

Other Threads

1. Inserting the 'status-bar' within ones own full-screen View

I read somewhere in the Android documentation that (paraphrasing
here): 'if you do make your own View take up the whole screen, it is
then possible/even-advisable, to insert and manage the 'status-bar'
within your View'.
How do you do that? - i.e. insert the status-bar within ones own 'full-
screen' View?

Thanks in advance for any useful feedback.


2. How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

have you tried TabActivity

Best Regards,
Atif Gulzar

I  Unicode, zln 


3. Image with a Button, or text with ImageButton

4. Using png image in program

5. 鍥炲: Orientation for Dial og

6. 鍥炲: Play Audio File (sto red in files directory)

7. book page flip transition