mercredi 6 mai 2015

how to show selection of the lst item in recycler view in android?

I have implemented the recycler view in navigation drawer in android.This is working fine.I am able to switch between item by clicking on recycler view item. but i am not able to change the background color for the selected item.please suggest me how to imeplement it.I have tried this so far.

1.Background Selector in RecyclerView Item Tried to make recycler view clickable,focusable but didn't work

2.http://ift.tt/1G1DTgW

implemented but didn't understand where to write the code for changing background

Please help me out.

Aucun commentaire:

Enregistrer un commentaire