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

2010-03-21 Thread pentium10
Is there any solution on this problem? I ran into the same, and looking for ways to get this done. On Feb 4, 5:05 pm, chboing chbo...@gmail.com wrote: i have the exact same problem ... i have an Activity that contains a Listview which is used in a Dialog My ListView contains only TextViews.

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

2010-03-21 Thread Brion Emde
I'm pretty sure all these people found the answer to their problem, as this is such a common need. The minimum you should need to make a clickable list view is this: @Override protected void onCreate(Bundle savedInstanceState) {

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

2010-03-21 Thread Brion Emde
Actually, I could be more clear. I think that every Android beginner at least build the sample programs that have stuff in them they are interested in. For example, the APIDemos sample contains many example of ListViews. If you don't want to build the APIDemos sample, most of what is there,

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

2010-02-04 Thread chboing
i have the exact same problem ... i have an Activity that contains a Listview which is used in a Dialog My ListView contains only TextViews. It's initialized in my own baseAdapter. Built from a txt file on the sd card. it's working nicely except the main goal for me, select one of those item in

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

2010-01-26 Thread Bing Jin Lin
Hello I have the same problem, my ListActivity has overridden onListItemClick method, But I can't see click event passed into the method when I click on item, also highlight row is not shown. Follwing is my layout file for a row on ListView: it does not contain any foucsable children. ?xml

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

2010-01-26 Thread Bing Jin Lin
I re-post layout file and ListActivity implementation public class SimpleListActivity extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getListView().setAdapter(new

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

2010-01-06 Thread Ted
Hey! I think I have the same problem, and I do not have any focusable children. My layout for a Row in the ListView contains: LinearLayout | +-- ImageView | +-- LinearLayout | +-- TextView | +-- TextView | +-- TextView

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

2009-12-04 Thread hwii77
maybe maybe try this: Add android:clickable=true (and android:focusable=true) On Dec 2, 1:37 pm, n179911 n179...@gmail.com wrote: Hi, I have a simple ListView in my layout.xml file.     ListView android:id=@+id/action_list             android:layout_width=fill_parent            

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 hwi...@gmail.com wrote: maybe maybe try this: Add android:clickable=true  (and android:focusable=true) On Dec 2, 1:37 pm, n179911

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 romain...@android.com 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 hwi...@gmail.com wrote: maybe maybe try

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

2009-12-03 Thread Brion Emde
You want to override the method onListItemClick(ListView l, View v, int position, long id) instead. On Dec 2, 2:37 pm, n179911 n179...@gmail.com wrote: Hi, I have a simple ListView in my layout.xml file.     ListView android:id=@+id/action_list             android:layout_width=fill_parent

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

2009-12-03 Thread Bill
Why doesn't setting the Listener work? On Dec 2, 5:13 pm, Brion Emde brione2...@gmail.com wrote: You want to override the method onListItemClick(ListView l, View v, int position, long id) instead. On Dec 2, 2:37 pm, n179911 n179...@gmail.com wrote: Hi, I have a simple ListView in my