From 997b7be4c005696df91dc1833b4fb4db6c984991 Mon Sep 17 00:00:00 2001
From: Jules Aguillon
Date: Mon, 18 Nov 2024 00:13:08 +0100
Subject: launcher: Animated vector describing swipe gesture
Replace the short video with an animated vector image that shows the
swipe gesture.
This is much lighter and reliable than the mp4 video, which failed to
play on many devices.
Source for the image of the key is in inkscape SVG format in srcs/res
and is converted to an android drawable when needed. The swipe animation
is hand-written.
---
res/drawable/doc_anim_swipe.xml | 25 +++++++++++++++++++++++++
res/drawable/doc_key_u.xml | 25 +++++++++++++++++++++++++
res/layout/launcher_activity.xml | 2 +-
res/raw/intro_video.mp4 | Bin 123771 -> 0 bytes
res/values/styles.xml | 7 +++++++
5 files changed, 58 insertions(+), 1 deletion(-)
create mode 100644 res/drawable/doc_anim_swipe.xml
create mode 100644 res/drawable/doc_key_u.xml
delete mode 100644 res/raw/intro_video.mp4
(limited to 'res')
diff --git a/res/drawable/doc_anim_swipe.xml b/res/drawable/doc_anim_swipe.xml
new file mode 100644
index 0000000..6e91d30
--- /dev/null
+++ b/res/drawable/doc_anim_swipe.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/drawable/doc_key_u.xml b/res/drawable/doc_key_u.xml
new file mode 100644
index 0000000..4a94fe2
--- /dev/null
+++ b/res/drawable/doc_key_u.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml
index 4e0cc0c..67b3eb6 100644
--- a/res/layout/launcher_activity.xml
+++ b/res/layout/launcher_activity.xml
@@ -4,7 +4,7 @@
-
+
diff --git a/res/raw/intro_video.mp4 b/res/raw/intro_video.mp4
deleted file mode 100644
index 9eefe52..0000000
Binary files a/res/raw/intro_video.mp4 and /dev/null differ
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 8705d98..56edbde 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -56,5 +56,12 @@
- 16dp
- center
+
--
cgit v1.2.3