I use the listener on the Listview this way :
getListView().setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> view, View arg1, int arg2,
long arg3) {
String item = (String) view.getItemAtPosition(arg2);
Toast.makeText(MyActivity.this, "HOP : " +
item,Toast.LENGTH_SHORT).show();
}
});
maybe it can help !
alain
www.oxiane.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.