1

ListView item state_selected is lost on Samsung device

view story
linux-howto

http://stackoverflow.com – I have a problem with a simple ListView on a Samsung phone. I create a new ListView programmatically. The items are simple TextView. I put a listener on my list view: listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { view.setSelected(true); } }); The TextView (i.e. items of listView) use a ColorStateList as textColor (pressed-->Green ; selected-->Blue ; default-->Red). On the emulator, everything is fine : items are red by defaul (HowTos)