aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHermes Junior <ohermesjunior@gmail.com>2020-06-15 13:24:15 +0000
committerOHermesJunior <ohermesjunior@gmail.com>2020-06-15 13:24:15 +0000
commit87d4e8d85f86dce1ce681198e88109ff4071fca0 (patch)
treea8799fec6dc655ef2794221202131363485db7b2 /app/src/main/res
parente8e85b963143d111b13373ea225fe948e316de8e (diff)
downloadinfinity-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 '')
-rw-r--r--app/src/main/res/anim/slide_out_down.xml12
-rw-r--r--app/src/main/res/anim/slide_out_up.xml12
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>