Hi I am working on an application in which when I select on an listitem its background color should change and it should also show a vertical bar of single color at left side of listitem like it appears in youtube application.
The image is attached below:
I know how to change background color on listview item click but how do I add the red line which is apprearing in youtube application. For this I have thought of adding a view in listview item xml which I would make visible on item click event.But in that case how would I hide the view from other listview items? Or is their any other easy way to implement this?