title: CollapsingToolbarLayout with fixed/pinned Toolbar and functionality of "enterAlways"
body: <p>I have a standard "CollapsingToolbarLayout" implementation based on <a href="https://material.io/develop/android/components/collapsing-toolbar-layout/" rel="nofollow noreferrer">material design guidelines</a>.</p>
  
  <p>With the the settings below I was able to achieve behavior depicted on the picture:</p>
  
  <pre><code>&lt;CoordinatorLayout ...&gt;
      &lt;AppBarLayout ...&gt;
          &lt;CollapsingToolbarLayout
              app:layout_scrollFlags="scroll|enterAlways"
              ...&gt;
              &lt;Toolbar
                  app:layout_collapseMode="pin"&gt;
              &lt;/Toolbar&gt;
              &lt;MyCustomContent01 ... /&gt;
          &lt;/CollapsingToolbarLayout&gt;
      &lt;/AppBarLayout&gt;
      &lt;MyCustomContent02 ... /&gt;
  &lt;/CoordinatorLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/aL5BU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aL5BU.png" alt="enter image description here"></a></p>
  
  <h2>Question</h2>
  
  <p>How to achieve the following behavior?:</p>
  
  <ul>
  <li><strong>Scrolling up:</strong> always expand the Toolbar fully, even if we are not on the top of the list.</li>
  <li><strong>Scrolling down</strong>: just collapse the Toolbar, but don't hide it.</li>
  </ul>
  
  <p>In other words: How can I get rid of the step 3 while preserving the condition of step 4?</p>
  
  <p><a href="https://i.stack.imgur.com/zfSBs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zfSBs.png" alt="enter image description here"></a></p>
  
  <h2>Research</h2>
  
  <p><a href="https://medium.com/martinomburajr/android-design-collapsing-toolbar-scrollflags-e1d8a05dcb02" rel="nofollow noreferrer">For me the best article on this topic seems to be this one</a>, however none of the presented configurations match my needs.</p>
  
  <p><strong>Attempt one:</strong></p>
  
  <pre><code>&lt;CollapsingToolbarLayout
      app:layout_scrollFlags="scroll|enterAlways"
   ...&gt;
  </code></pre>
  
  <ul>
  <li>Never hide fully the Toolbar (getting rid of step 3): <strong>FAIL</strong></li>
  <li>Expand the Toolbar even if we are not on the top: <strong>OK</strong></li>
  </ul>
  
  <p><strong>Attempt two</strong></p>
  
  <pre><code>&lt;CollapsingToolbarLayout
      app:layout_scrollFlags="scroll|exitUntilCollapsed"
   ...&gt;
  </code></pre>
  
  <ul>
  <li>Never hide fully the Toolbar (getting rid of step 3): <strong>OK</strong></li>
  <li>Expand the Toolbar even if we are not on the top: <strong>FAIL</strong></li>
  </ul>