Highlighting a listitem in a listview

  • Replies:0
mcfly
  • Forum posts: 286

Jun 3, 2011, 2:36:21 PM via Website

Hi all

i have a listview with some listitem. when i touch a listitem, the event is triggered and i can read the selected value -> ok.
but the listitem is not highlithed. Shouldn't that be handled be the listview ? how do I highlight the selected listitem ?

regards


protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);

String sWikiid=al.get(position).sWikiid;
l.setSelected(true);

Reply