I am creating a listview with the reference from this link. Now am trying to highlight a particular row in listview. When am pressing the button the particular row got highlighted for a second. But what i want is that row should stay in same color until i presses the button in next row. my listview is
<ListView
android:id="@+id/mainListView"
android:layout_width="154dp"
android:layout_height="fill_parent"
android:layout_margin="10dp"
android:background="@drawable/layer_list"
android:dividerHeight="2px"
>
and in listview am placing a textview and an imageview. For highlighting the view i followed this tutorial. Am new to android. Help me in achieving this. Thanks in advance..