title: Transition in navigation drawer android
body: <p>Anyone having idea that how to achieve this type of transition. When we open <code>Navagation</code> drawer full screen is getting animation like this. I also looked at <a href="https://github.com/SpecialCyCi/AndroidResideMenu" rel="noreferrer" title="reside menu">reside menu</a> but here menu is predefined not as i want.</p>
  
  <p>I also tried with <code>NavigationDrawer</code> but not got succeed.</p>
  
  <pre><code>   drawer.addDrawerListener(new DrawerLayout.DrawerListener() {
          @Override
          public void onDrawerSlide(View drawerView, float slideOffset) {
              float moveFactor = (linearLayout.getWidth() * slideOffset);
  
              float min = 0.9f;
              float max = 1.0f;
              float scaleFactor = (max - ((max - min) * slideOffset));
              if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB)
              {
                  linearLayout.setTranslationX(moveFactor);
                  linearLayout.setScaleX(scaleFactor);
                  linearLayout.setScaleY(scaleFactor);
              }
              else
              {
                  AnimationSet animSet = new AnimationSet(true);
  
  
                  TranslateAnimation anim = new TranslateAnimation(lastTranslate, moveFactor, 0.0f, 0.0f);
                  anim.setDuration(0);
                  anim.setFillAfter(true);
                  animSet.addAnimation(anim);
                  ScaleAnimation scale = new ScaleAnimation(1.15f, 1.0f, 1.15f, 1.0f);
                  scale.setDuration(10);
                  scale.setFillAfter(true);
                  animSet.addAnimation(scale);
  
                  drawerView.startAnimation(animSet);
  
                  lastTranslate = moveFactor;
              }
          }
  
          @Override
          public void onDrawerOpened(View drawerView) {
  
          }
  
          @Override
          public void onDrawerClosed(View drawerView) {
  
          }
  
          @Override
          public void onDrawerStateChanged(int newState) {
  
          }
      });
  </code></pre>
  
  <p><strong>Thanks in advance</strong></p>
  
  <p><a href="https://i.stack.imgur.com/P5xW8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/P5xW8.png" alt="Animation in navigation drawer"></a></p>