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
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
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 ...
>> >>
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
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
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
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
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
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
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
10 matches
Mail list logo