I need to highlight a row in a ListView
that was selected (to show the user what he chose), so, it\'s not the one that is going to be chosen, it\'s the one he c
The SIMPLEST of all
View updatedview=null;
@Override
public void onItemClick(AdapterView> parent, View view, int position, long id) {
//these two lines of code means that only one item can be selected at a time
if(updatedview != null)
updatedview.setBackgroundColor(Color.TRANSPARENT);
updatedview=view;
Toast.makeText(getApplicationContext(), " " + str[position],Toast.LENGTH_LONG).show();
view.setBackgroundColor(Color.CYAN);
}