Re: [android-developers] Re: ListView not responding to Click or KeyPress

2009-12-04 Thread n179911
Thank you.

On Fri, Dec 4, 2009 at 10:43 AM, Romain Guy  wrote:

> This is unnecessary. This problem will occur if your list item
> contains focusable children (like buttons, edittexts, etc.)
>
> On Thu, Dec 3, 2009 at 4:20 PM, hwii77  wrote:
> > maybe maybe try this: Add android:clickable="true"  (and
> > android:focusable="true")
> >
> > On Dec 2, 1:37 pm, n179911  wrote:
> >> Hi,
> >>
> >> I have a simple ListView in my layout.xml file.
> >>
> >>  >> android:layout_width="fill_parent"
> >> android:layout_height="wrap_content"
> >> />
> >>
> >> And in my javacode, I add a setOnItemClickListener() to my listview:
> >>
> >> listView.setOnItemClickListener(new OnItemClickListener() {
> >>
> >> public void onItemClick(AdapterView parent, View
> view,
> >> int position, long id) {
> >> System.out.println ("get onItem Click position=
> >> "+position);
> >>
> >> }
> >> });
> >>
> >> But when I run on G1. I don't see any print out when I click an item on
> the
> >> ListView on the phone.
> >> Or when I select an item using track ball and press CENTER.
> >>
> >> Can you please tell me why to resolve my problem?
> >>
> >> Thanks in advance.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: ListView not responding to Click or KeyPress

2009-12-04 Thread Romain Guy
This is unnecessary. This problem will occur if your list item
contains focusable children (like buttons, edittexts, etc.)

On Thu, Dec 3, 2009 at 4:20 PM, hwii77  wrote:
> maybe maybe try this: Add android:clickable="true"  (and
> android:focusable="true")
>
> On Dec 2, 1:37 pm, n179911  wrote:
>> Hi,
>>
>> I have a simple ListView in my layout.xml file.
>>
>>     >             android:layout_width="fill_parent"
>>             android:layout_height="wrap_content"
>>         />
>>
>> And in my javacode, I add a setOnItemClickListener() to my listview:
>>
>> listView.setOnItemClickListener(new OnItemClickListener() {
>>
>>                 public void onItemClick(AdapterView parent, View view,
>> int position, long id) {
>>                     System.out.println ("get onItem Click position=
>> "+position);
>>
>>                 }
>>             });
>>
>> But when I run on G1. I don't see any print out when I click an item on the
>> ListView on the phone.
>> Or when I select an item using track ball and press CENTER.
>>
>> Can you please tell me why to resolve my problem?
>>
>> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en