I am using the view
This might be dumb, but it didn't worked due to the fact that the build tool was not updated in the
build.gradle of the application version to 22, I was using 21 that is why it is not working as expected to be.
Also what SanderTuit said: adding
com.android.support:recyclerview-v7:22.2.0 will also solve the problem