For a working implementation, Have a look at the Sample Project - app
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.VRGsoftUA:RollingLayoutManager:1.0'
}
RecyclerView recyclerView = findViewById(R.id.recycler_view);
RollingLayoutManager rollingLayoutManager = new RollingLayoutManager(this);
recyclerView.setLayoutManager(rollingLayoutManager);