Added ReceiveTransactionFragment transition animations

This commit is contained in:
Severiano Jaramillo 2017-12-06 23:02:06 -06:00
parent 4f4100d16e
commit b992f0a374
3 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/overshoot_interpolator" >
<translate
android:fromXDelta="-150%"
android:fromYDelta="-150%"
android:toXDelta="0%"
android:toYDelta="0%"
android:startOffset="0"
android:duration="300" />
</set>

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate
android:interpolator="@android:anim/decelerate_interpolator"
android:fromYDelta="0%"
android:toYDelta="50%"
android:duration="200" />
<translate
android:interpolator="@android:anim/linear_interpolator"
android:fromXDelta="0%"
android:toXDelta="-50%"
android:duration="300" />
<set
android:shareInterpolator="true"
android:interpolator="@android:anim/linear_interpolator" >
<scale
android:pivotX="100%"
android:pivotY="100%"
android:fromXScale="100%"
android:fromYScale="100%"
android:toXScale="50%"
android:toYScale="50%"
android:duration="300" />
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.5"
android:duration="300"/>
</set>
</set>

View file

@ -61,6 +61,15 @@
<style name="SendTransactionAnimation.Window" parent="@android:style/Animation.Activity"> <style name="SendTransactionAnimation.Window" parent="@android:style/Animation.Activity">
<item name="android:windowEnterAnimation">@anim/send_transaction_in</item> <item name="android:windowEnterAnimation">@anim/send_transaction_in</item>
--<item name="android:windowExitAnimation">@anim/send_transaction_out</item> <item name="android:windowExitAnimation">@anim/send_transaction_out</item>
</style>
<style name="ReceiveTransactionTheme" parent="Theme.AppCompat.Light.Dialog">
<item name="android:windowAnimationStyle">@style/ReceiveTransactionAnimation.Window</item>
</style>
<style name="ReceiveTransactionAnimation.Window" parent="@android:style/Animation.Activity">
<item name="android:windowEnterAnimation">@anim/receive_transaction_in</item>
<item name="android:windowExitAnimation">@anim/receive_transaction_out</item>
</style> </style>
</resources> </resources>