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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -