X

Sign in

Forgotten your password?

... or login with Facebook:

Don't have an AndroidPIT account yet? Sign up
Android Forum » Android Developer Forum » Android Developer Forum » Highlighting a listitem in a listview

Highlighting a listitem in a listview

Highlighting a listitem in a listview
created on Jun 3, 2011 2:36:21 PM
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);

-----
WorldHistory auf Android OS. https://market.android.com/details?id=solveraapps.chronicbrowser&feature=search_result

Reply with quote Reply Link ±0     (0 votes)