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 - Unusual behaviour when drawing lots of images onto a large canvas -

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

javascript - Chart.js - setting tooltip z-index -