summaryrefslogtreecommitdiff
path: root/ui/common
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-23 09:40:40 +0100
committerGitHub <noreply@github.com>2024-03-23 09:40:40 +0100
commitf20ce1fc690788273bb779663a4f3211f47a0973 (patch)
treea1192a00bc1b5153d143fa579b8c6f977111c847 /ui/common
parent376c83d200859ef562d6e3de02602ef18de3e7de (diff)
downloadAntennaPod-f20ce1fc690788273bb779663a4f3211f47a0973.zip
Move first batch of preferences code to :ui:preferences (#7010)
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/src/main/res/anim/fade_in.xml9
-rw-r--r--ui/common/src/main/res/anim/fade_out.xml10
-rw-r--r--ui/common/src/main/res/anim/slide_left_in.xml9
-rw-r--r--ui/common/src/main/res/anim/slide_left_out.xml9
-rw-r--r--ui/common/src/main/res/anim/slide_right_in.xml9
-rw-r--r--ui/common/src/main/res/anim/slide_right_out.xml9
-rw-r--r--ui/common/src/main/res/values/integers.xml3
7 files changed, 58 insertions, 0 deletions
diff --git a/ui/common/src/main/res/anim/fade_in.xml b/ui/common/src/main/res/anim/fade_in.xml
new file mode 100644
index 000000000..7d2fea5a6
--- /dev/null
+++ b/ui/common/src/main/res/anim/fade_in.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <alpha
+ android:duration="@integer/fragment_transition_duration"
+ android:fromAlpha="0.0"
+ android:interpolator="@android:anim/accelerate_interpolator"
+ android:toAlpha="1.0" />
+</set> \ No newline at end of file
diff --git a/ui/common/src/main/res/anim/fade_out.xml b/ui/common/src/main/res/anim/fade_out.xml
new file mode 100644
index 000000000..ecfb092ae
--- /dev/null
+++ b/ui/common/src/main/res/anim/fade_out.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="@integer/fragment_transition_duration"
+ android:fromAlpha="1.0"
+ android:interpolator="@android:anim/accelerate_interpolator"
+ android:toAlpha="0.0" />
+
+</set> \ No newline at end of file
diff --git a/ui/common/src/main/res/anim/slide_left_in.xml b/ui/common/src/main/res/anim/slide_left_in.xml
new file mode 100644
index 000000000..288e06dd8
--- /dev/null
+++ b/ui/common/src/main/res/anim/slide_left_in.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shareInterpolator="false">
+ <translate
+ android:fromXDelta="-100%" android:toXDelta="0%"
+ android:fromYDelta="0%" android:toYDelta="0%"
+ android:duration="@integer/fragment_transition_duration"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
+</set>
diff --git a/ui/common/src/main/res/anim/slide_left_out.xml b/ui/common/src/main/res/anim/slide_left_out.xml
new file mode 100644
index 000000000..873947de4
--- /dev/null
+++ b/ui/common/src/main/res/anim/slide_left_out.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shareInterpolator="false">
+ <translate
+ android:fromXDelta="0%" android:toXDelta="-100%"
+ android:fromYDelta="0%" android:toYDelta="0%"
+ android:duration="@integer/fragment_transition_duration"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
+</set>
diff --git a/ui/common/src/main/res/anim/slide_right_in.xml b/ui/common/src/main/res/anim/slide_right_in.xml
new file mode 100644
index 000000000..a00815052
--- /dev/null
+++ b/ui/common/src/main/res/anim/slide_right_in.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shareInterpolator="false">
+ <translate
+ android:fromXDelta="100%" android:toXDelta="0%"
+ android:fromYDelta="0%" android:toYDelta="0%"
+ android:duration="@integer/fragment_transition_duration"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
+</set>
diff --git a/ui/common/src/main/res/anim/slide_right_out.xml b/ui/common/src/main/res/anim/slide_right_out.xml
new file mode 100644
index 000000000..46de69db3
--- /dev/null
+++ b/ui/common/src/main/res/anim/slide_right_out.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shareInterpolator="false">
+ <translate
+ android:fromXDelta="0%" android:toXDelta="100%"
+ android:fromYDelta="0%" android:toYDelta="0%"
+ android:duration="@integer/fragment_transition_duration"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
+</set>
diff --git a/ui/common/src/main/res/values/integers.xml b/ui/common/src/main/res/values/integers.xml
new file mode 100644
index 000000000..db5f6f01d
--- /dev/null
+++ b/ui/common/src/main/res/values/integers.xml
@@ -0,0 +1,3 @@
+<resources>
+ <integer name="fragment_transition_duration">300</integer>
+</resources>