0

Can i set the xml atrributes of this animation for onPendingTransition() programmatically?

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:zAdjustment="top">
    <translate
        android:fromYDelta="0"
        android:toYDelta="83%"
        android:duration="400"
        />
</set>
Rami
  • 7,879
  • 12
  • 36
  • 66
the_prole
  • 8,275
  • 16
  • 78
  • 163

1 Answers1

0

Just call overridePendingTransition(R.anim.yourEnterAnim, R.anim.yourExitAnim)

Rami
  • 7,879
  • 12
  • 36
  • 66