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.
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) {
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,
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo