1

Clear SingleChoice ListView selection

view story
linux-howto

http://stackoverflow.com – Is there a way to clear the selected item in a ListView? The ListView is defined like this: <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:minHeight="50dp" android:id="@+id/example_list" android:layout_weight="2" android:choiceMode="singleChoice"/> And is filled using a custom Adapter. The selected item is highlighted using a Selector: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" > <shape> (HowTos)