Update: I found a way to intercept the key press, by just adding the following code into getView(final int position, View convertView, ViewGroup parent) method:
convertView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i("#### onClick :", (new Integer(position)).toString ()); } }); The problem with this approach is when pressing a list item, the list item no longer get highlighted. Anyone knows how to manually highlight a list item (suppose we know its position)? I have tried v.setSelected(true) but the effect appears to be not good. -- 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