Hi Jesse,
You should **not** set individual click listeners on the list items.
This will cause all sort of problems, like the ones you're seeing. The
main reason behind that is that ListView handles clicks/long clicks on
the items already. Instead you should use
Romain,
Thanks for your response. I'm not sure if that approach will work,
though. My ListActivity's onListItemClick() method is called when I
click on an item with the trackball, but *not* when I touch it.
Perhaps the root problem is that my list rows have focusable items in
them (check
I'm trying to get the same behavior as Alarm Clock, where tapping on a
list row brings up an activity to edit the row, and the check box can
only be selected by tapping on the check box itself. I think that
precludes using multiple-choice mode for the list view, correct?
Indeed it does.
On Mar 11, 5:57 pm, Jesse McGrew jmcg...@gmail.com wrote:
Thanks for your response. I'm not sure if that approach will work,
though. My ListActivity's onListItemClick() method is called when I
click on an item with the trackball, but *not* when I touch it.
It looks like I can handle both
On Mar 11, 6:04 pm, Romain Guy romain...@google.com wrote:
I'm trying to get the same behavior as Alarm Clock, where tapping on a
list row brings up an activity to edit the row, and the check box can
only be selected by tapping on the check box itself. I think that
precludes using
On Mar 11, 6:28 pm, Jesse McGrew jmcg...@gmail.com wrote:
On Mar 11, 6:04 pm, Romain Guy romain...@google.com wrote:
I'm trying to get the same behavior as Alarm Clock, where tapping on a
list row brings up an activity to edit the row, and the check box can
only be selected by tapping
BTW did you call setItemsCanFocus(true) on your ListView?
On Wed, Mar 11, 2009 at 7:01 PM, Jesse McGrew jmcg...@gmail.com wrote:
On Mar 11, 6:28 pm, Jesse McGrew jmcg...@gmail.com wrote:
On Mar 11, 6:04 pm, Romain Guy romain...@google.com wrote:
I'm trying to get the same behavior as
Aha! Adding a call to that method fixes both the context menu problem
and the click handler problem. Thanks.
Jesse
On Mar 11, 7:03 pm, Romain Guy romain...@google.com wrote:
BTW did you call setItemsCanFocus(true) on your ListView?
On Wed, Mar 11, 2009 at 7:01 PM, Jesse McGrew
Anybody?
On Mar 5, 6:54 pm, Jesse McGrew jmcg...@gmail.com wrote:
I have a list activity that creates a header row above the data rows
from the adapter. I want to receive click events when the user selects
the header or a data row (but my data rows have check boxes in them,
so this part is
I'm not sure, but try this:
Add a key-event listener to your item instead of the onClick:
...
...
v.setOnKeyListener(myKeyListener);
...
And in that listener, handle the key-codes KeyEvent.KEYCODE_DPAD_x
where x = CENTER, DOWN, UP, LEFT or RIGHT.
On Mar 10, 8:30 pm, Jesse
10 matches
Mail list logo