1

Android listview item background change

view story
linux-howto

http://stackoverflow.com – i have a android listview. i want to change listview item background when i click one listview item. and then previous selected item must go back to default background. this means only one item has to be selected. i have searched it for a long time. i can change background of selected item using onItemClick() but i can't change previous selected item. for example, if i select second item, it was changed. and then i select third item. oh my god! it is changed too! what can i do for this. how can i get the previous position? here is my android code. private class ListViewItemClickListener (HowTos)