Added AccountsFragment exit animation
This commit is contained in:
parent
b59e17175a
commit
1545df3084
2 changed files with 18 additions and 0 deletions
17
app/src/main/res/anim/accounts_out.xml
Normal file
17
app/src/main/res/anim/accounts_out.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/linear_interpolator" >
|
||||
<scale
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
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>
|
|
@ -82,5 +82,6 @@
|
|||
|
||||
<style name="AccountsAnimation.Window" parent="@android:style/Animation.Activity">
|
||||
<item name="android:windowEnterAnimation">@anim/accounts_in</item>
|
||||
<item name="android:windowExitAnimation">@anim/accounts_out</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue