event handler for holding a list item

by kingkung » Mon, 12 May 2008 22:10:32 GMT


Sponsored Links
 There is the onListItemClick() function for handling item clicks in a
list activity.

How do you handle events which should occur when a person presses and
holds down a list item for >2 secs or so?  There must be a way to
handle these events, since the Contacts application does so (holding
down something in a list will bring up a popup menu of choices).

Anyone have any idea?  Thanks.
--~--~---------~--~----~------------~-------~--~----~



event handler for holding a list item

by Mark Murphy » Mon, 12 May 2008 22:16:59 GMT


 > How do you handle events which should occur when a person presses and

That would be AdapterView#setOnItemLongClickListener().

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
The Busy Coder's Guide to Android Development -- coming in June 2008!


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


Sponsored Links


event handler for holding a list item

by kingkung » Tue, 13 May 2008 18:29:02 GMT


 Thanks!



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



Other Threads

1. 11 hours ago

Malem all.... ada yg tau ngga yaa kenapa kok setiap saya buka tweeter atau
facebook semua statusnya 11 hours ago, padahal situation status baru
dipost...

Thanks before.....

-- 
"Indonesian Android Community [id-android]" 

2. Urgent Contract Positions in Washington, DC

Hello Friends,

I am posting and updating all of my contract opportunities on
http://nchalana.wordpress.com/ If you have consultants available who
all are comfortable and available for any of the position, send me a
copy of your resume and the best way for me to contact.

If you know anyone who would be available and comfortable for these
opportunities, feel free to send them the link http://nchalana.wordpress.com/

Feel free to contact me if you have any questions. All positions are
available on C2C / W2 basis.

H1B Agencies: Please send me resume of your consultants, if they are
okay with any of the positions. Please mention the Job Title in the
Subject Line, while submitting them.


Thanks & Regards

Navneet Chalana
Sr. Account Manager
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Okaya Inc. | 631-685-1134 Ext 260 | Fax: 631-389-2446 |
navn...@okayainfo.com | Yahoo: reach.navneet

-- 

3. link yang lain utk download I5700XXJB3 ....

4. Creating Multiple Instances of a Class

5. ~~Hi~~

6. Help with contacts/numbers data to listView.

7. Android PDF library