aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2020-06-16 04:27:54 +0000
committerGitHub <noreply@github.com>2020-06-16 04:27:54 +0000
commit268ea4f9d882b4475d808a8452137f3629738dcb (patch)
tree63f3c21d5bc415a2d7de7a205d5d7643ea637172 /app/src/main/res
parentecd8988342bbcf883afce3c460af85fe68b14d62 (diff)
parent87d4e8d85f86dce1ce681198e88109ff4071fca0 (diff)
downloadinfinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar.gz
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar.bz2
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar.lz
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar.xz
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.tar.zst
infinity-for-reddit-268ea4f9d882b4475d808a8452137f3629738dcb.zip
Merge pull request #123 from OHermesJunior/media-exit-anim
Make exit animation follow slide direction on media activities.
Diffstat (limited to 'app/src/main/res')
-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>