[android-developers] Re: No callback when list item is touched.

2009-03-27 Thread Mariano Kamp
Brendon, could you please comment out the button in your XML and run it again? Cheers, Mariano On Sun, Feb 1, 2009 at 10:40 PM, Brendon Drew wrote: > No, I am printing a log entry just before I call viewItem(), and I wasn't > seeing that log statement when touching the item. > > Though I thin

[android-developers] Re: No callback when list item is touched.

2009-03-27 Thread matthias
I have a similar problem: When putting different widgets in a listview, things get out of hand. I had three custom relative layouts and a spinner in that listview, and everything worked fine. I then added another spinner and a button, and now the spinners do not update their focused/clicked state

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Brendon Drew
ahh, right, I misunderstood. I thought you meant if those were set to true. but still, why does it work with the trackball? > > On Feb 1, 2009 5:04 PM, "Romain Guy" wrote: > > When an item contains a ... >> >> > > On Feb 1, 2009 4:41 PM, "Brendon Drew" wrote: > > No, I am printing ... >> >>

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Romain Guy
A button is clickable and focusable. On Feb 1, 2009 7:01 PM, "Brendon Drew" wrote: the button had neither focusable or clickable defined. and why was I getting the event when clicking with the trackball, but not when touching it. > > On Feb 1, 2009 5:04 PM, "Romain Guy" wrote: > > When an item

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Brendon Drew
the button had neither focusable or clickable defined. and why was I getting the event when clicking with the trackball, but not when touching it. On Feb 1, 2009 5:04 PM, "Romain Guy" wrote: When an item contains a focusable/clickable item you cannot get the onitemclick event. > > On Feb 1, 200

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Romain Guy
When an item contains a focusable/clickable item you cannot get the onitemclick event. On Feb 1, 2009 4:41 PM, "Brendon Drew" wrote: No, I am printing a log entry just before I call viewItem(), and I wasn't seeing that log statement when touching the item. Though I think I have found the proble

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Brendon Drew
No, I am printing a log entry just before I call viewItem(), and I wasn't seeing that log statement when touching the item. Though I think I have found the problem. I narrowed it down to my custom adapter that extends ArrayAdapter. In my adapter I call the overloaded ArrayAdapter constructor: pub

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Mark Murphy
Brendon Drew wrote: > I do have that listener defined as well. Though again, I'm not getting a > callback when I touch it. I do get a call back when selecting an item > with the trackball. Besides, on further reflection, I had them backwards, anyway. Trackball/D-pad movement is "select", tap is

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Brendon Drew
I do have that listener defined as well. Though again, I'm not getting a callback when I touch it. I do get a call back when selecting an item with the trackball. list.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { public void onItemSelected(Adap

[android-developers] Re: No callback when list item is touched.

2009-02-01 Thread Mark Murphy
Brendon wrote: > I have a ListView that is populated with a custom adapter. When an > item is clicked with the trackball, it works fine, i.e. I can catch > the event and move on, though when I touch an item with my finger > there is no callback from the listener. The item does respond to the > t