diff options
author | Hermes Junior <ohermesjunior@gmail.com> | 2020-06-15 13:24:15 +0000 |
---|---|---|
committer | OHermesJunior <ohermesjunior@gmail.com> | 2020-06-15 13:24:15 +0000 |
commit | 87d4e8d85f86dce1ce681198e88109ff4071fca0 (patch) | |
tree | a8799fec6dc655ef2794221202131363485db7b2 /app/src/main/res/anim | |
parent | e8e85b963143d111b13373ea225fe948e316de8e (diff) | |
download | infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar.gz infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar.bz2 infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar.lz infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar.xz infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.tar.zst infinity-for-reddit-87d4e8d85f86dce1ce681198e88109ff4071fca0.zip |
Make exit animation follow slide direction on media activities.
Diffstat (limited to 'app/src/main/res/anim')
-rw-r--r-- | app/src/main/res/anim/slide_out_down.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/anim/slide_out_up.xml | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/app/src/main/res/anim/slide_out_down.xml b/app/src/main/res/anim/slide_out_down.xml new file mode 100644 index 00000000..4c64d6c4 --- /dev/null +++ b/app/src/main/res/anim/slide_out_down.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="0" + android:toYDelta="+50%p" /> + <alpha + android:duration="@android:integer/config_shortAnimTime" + android:fromAlpha="1.0" + android:toAlpha="0.0" /> +</set> diff --git a/app/src/main/res/anim/slide_out_up.xml b/app/src/main/res/anim/slide_out_up.xml new file mode 100644 index 00000000..945e2b7e --- /dev/null +++ b/app/src/main/res/anim/slide_out_up.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="0" + android:toYDelta="-50%p" /> + <alpha + android:duration="@android:integer/config_shortAnimTime" + android:fromAlpha="1.0" + android:toAlpha="0.0" /> +</set> |