Android: change text color of an item in listview -


i have implemented side menu navigation. left side menu listview , onclick of item opens activity. want change text color of item when user clicks on , remain color of item until clicks on item. , after click on item change color of first item default color , change other item color , on. or code example highly appreciated. in advance.

enter image description here

use checkedtextview text of list item , set android:textcolor value color state list resource.

remember set list view: android:choicemode="singlechoice" well


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -