title: TabLayout hide/show animation
body: <p>I have <code>Toolbar</code> with <code>TabLayout</code> which I'd like to hide/show at some points, I'd like to animate the hide/show process of the tabs (The toolbar remains visible)... putting a scale animation on the <code>TabLayout</code> hides it but the height of the toolbar remains the same, as if the tabs are there... any suggestions ?</p>
  
  <pre><code> public void showTabs(boolean show) {
          if (show) {
            //tabLayout.setVisibility(View.VISIBLE);
              tabLayout.animate().scaleY(1).setInterpolator(new DecelerateInterpolator()).start();
  
          } else {
              tabLayout.animate().scaleY(0).setInterpolator(new AccelerateInterpolator()).start();
              //tabLayout.setVisibility(View.GONE);
          }
      }
  </code></pre>