recyclerview prevent from scroll to last position code example
Example: make recycler view non scrollable
//Override your LayoutManager's canScrollVertically::boolean
linearLayoutManager = new LinearLayoutManager(context) {
@Override
public boolean canScrollVertically() {
return false;
}
};