title: How to make slide animation with a fixed screen and new screen?
body: <p>I made three xml files for the transition.</p>
  
  <p><code>enter_from_right.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;translate
          android:duration="@android:integer/config_mediumAnimTime"
          android:fromXDelta="0%"
          android:fromYDelta="0%"
          android:toXDelta="0%"
          android:toYDelta="0%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p><code>none.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;translate
          android:duration="@android:integer/config_mediumAnimTime"
          android:fromXDelta="100%"
          android:fromYDelta="0%"
          android:toXDelta="0%"
          android:toYDelta="0%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p><code>exit_to_right.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;translate
          android:duration="@android:integer/config_mediumAnimTime"
          android:fromXDelta="0%"
          android:fromYDelta="0%"
          android:toXDelta="100%"
          android:toYDelta="0%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>However, It just works fine in <code>Activities</code> not in <code>Fragments</code>.</p>
  
  <p>When I click the back button, the backward transition(pop) works fine. But it doesn't work properly when I call the new fragment. It just blinks when the screen changes.</p>
  
  <p>I tried changing the duration to 50 of <code>none.xml</code>. And I see the new screen comes in from the right side. And also tried with 10000. But it just delays the changing time.</p>
  
  <p>I am using navigation component. And I defined like this:</p>
  
  <pre><code>        &lt;action
              android:id="@+id/action_initFragment_to_settingFragment"
              app:destination="@id/settingFragment"
              app:enterAnim="@anim/enter_from_right"
              app:exitAnim="@anim/none"
              app:popExitAnim="@anim/exit_to_right"
              app:popEnterAnim="@anim/none"/&gt;
  </code></pre>
  
  <p>What's wrong with it? 
  I think this is because of Z index. Is there any way to give Z index attribute?</p>