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. Cannot read input from user using stdin when running application in adb shell

I have a Linux application written in ANSI C that I am porting to
Android that reads input from a user using fgets() and forwards this
information over an already-established socket connection.  However,
when using the adb shell, upon attempting to read from stdin fgets()
immediately returns NULL.

An additional test I performed using getc shows that stdin is
constantly being spammed with NULLs, but anything typed by the user
within the adb shell is never picked up.

This is a text-based application intended to be run from the adb shell
only.

-- 

2. Close Live Folder

Hello,

I'm writing a live folder that pops up a login dialog so you can
download data from an outside source.  I'd like to close both the
login dialog and the live folder window(?) when the login dialog is
dismissed.  Is there anyway to do this?

--Thanks

-- 

3. Looking for mobile balance transfer study materials

4. Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

5. Protecting service from getting killed.

6. UBIFS issues

7. Bluetooth name and address in 1.5