Material theme + CardViews + RecyclerView implementantion

Implement material design concepts into the application
I'm not sure how this is implemented with RecyclerView.
I found this gist that might provide a solution but I don't know if it's the correct one.

https://gist.github.com/adelnizamutdinov/31c8f054d1af4588dc5c

what do you think?