Added ReceiveTransactionFragment transition animations
This commit is contained in:
parent
4f4100d16e
commit
b992f0a374
3 changed files with 55 additions and 1 deletions
12
app/src/main/res/anim/receive_transaction_in.xml
Normal file
12
app/src/main/res/anim/receive_transaction_in.xml
Normal 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>
|
33
app/src/main/res/anim/receive_transaction_out.xml
Normal file
33
app/src/main/res/anim/receive_transaction_out.xml
Normal 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>
|
|
@ -61,6 +61,15 @@
|
|||
|
||||
<style name="SendTransactionAnimation.Window" parent="@android:style/Animation.Activity">
|
||||
<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>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue