scrollListener = new EndlessRecyclerViewScrollListener(linearLayoutManager) {
private static final int HIDE_THRESHOLD = 20;
private int scrolledDistance = 0;
private boolean controlsVisible = true;
@Override
public void onScrolled(RecyclerView view, int dx, int dy) {
super.onScrolled(view, dx, dy);
// if(dy > 0){
// hideViews();
// Log.d("TAG","Scroll up");
// }else{
// showViews();
// Log.d("TAG","Scroll down");
(see full text)