title: ToolBar and StatusBar overlap in the Tabbed activity in an unmodified newly created project in Android Studio
body: <p>I created a new project with a <code>Tabbed Activity</code> and navigation style <code>Action Bar Tabs</code>.</p>
  
  <p>The <code>MainActivity</code>'s  default layout is as follows on which i swipe from the <code>TabLayout</code> as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/KEDvk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEDvk.png" alt="enter image description here"></a></p>
  
  <p><strong>After swiping all the way up it looks like this:</strong>
  The <code>ToolBar</code> and <code>StatusBar</code> are overlapping!</p>
  
  <p><a href="https://i.stack.imgur.com/i7kxS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i7kxS.png" alt="enter image description here"></a></p>
  
  <p><strong>Questions:</strong></p>
  
  <p>Is this the expected behavior? Shouldn't the scrolling be disabled or if enabled, the toolbar should hide (e.g. whatsapp)? This default behavior appears buggy to me. Did i miss something that led to this?</p>
  
  <p>And if this is the default expected behavior? how can do the following?</p>
  
  <ul>
  <li>Disable the scrolling in <code>CoordinatorLayout</code>?</li>
  <li>Hide the <code>ToolBar</code> when scrolling is enabled?</li>
  </ul>
  
  <p><strong>PS:</strong> Like i mentioned this is an unmodified new project (no changes from my end). If someone still needs the generated code I'll share.</p>