title: CollapsingToolbarLayout disable draw down expansion
body: <p>I have a CollapsingToolbar that I have conditionally disabled. When the user loads the view under that condition, it just looks like a normal ToolBar object.</p>
  
  <p>The only weird thing is that if they drag down, such as in a pull to refresh style action, the CollapsingToolbar expands, despite my wishes and code to the contrary!</p>
  
  <p>Here is what I have, and the commented out code reflects what I have also tried</p>
  
  <pre><code>    appBar.setExpanded(false);
      appBar.setActivated(false);
      /*CollapsingToolbarLayout.LayoutParams p = (CollapsingToolbarLayout.LayoutParams)toolbar.getLayoutParams();
      p.setCollapseMode(CollapsingToolbarLayout.LayoutParams.COLLAPSE_MODE_PIN);
      toolbar.setLayoutParams(p);
  
      CoordinatorLayout.LayoutParams appBarLayoutParams = (CoordinatorLayout.LayoutParams) appBar.getLayoutParams();
      appBarLayoutParams.setBehavior(null);
      appBar.setLayoutParams(appBarLayoutParams);*/
      CoordinatorLayout.LayoutParams lp = (CoordinatorLayout.LayoutParams)appBar.getLayoutParams();
      lp.height = (int) getResources().getDimension(R.dimen.app_bar_height);
  </code></pre>
  
  <p>I want to disable the drag down expansion, and I didn't see a way to do it. This activity contains a recyclerview and that is what users primarily interact with.</p>