overridePendingTransition duration is ignored
<p>I'm using overridePendingTransition to set my own activity transition. Everything works fine except that I cannot change to duration of the animation, it is ignored.</p>

<p><strong>slide_down.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/accelerate_decelerate_interpolator"&gt;

    &lt;translate
        android:duration="2000"
        android:fromYDelta="0"
        android:toYDelta="100%p"
        android:zAdjustment="top"/&gt;

&lt;/set&gt;
</code></pre>

<p><strong>stay.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;translate xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="2000"
    android:fromYDelta="0%p"
    android:toYDelta="0%p"
    android:zAdjustment="top"/&gt;
</code></pre>

<p>The duration is set to 2000 ms but the animation is still just a fraction of a second long. Even changing it to an extreme value like 10000 does nothing.</p>

<p>If I change the animations in Developer options in settings, the animation duration corresponds to the given settings.</p>

<p>Java code for reference:</p>

<p><strong>MainActivity.java</strong></p>

<pre><code>public void games(View view){

    startActivity(new Intent(MainActivity.this, GamesActivity.class));
    overridePendingTransition(R.anim.slide_up, R.anim.stay);


}
</code></pre>

<p>Anyone that has an idea?</p>