abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2023-12-31 13:18:15 +0100
committerJules Aguillon2023-12-31 13:18:15 +0100
commit49a6a30773087713d9f5b605377115350ee0453a (patch)
tree6490e0f0c953b8b80cd92e81ac03f1917e80245f /res
parent4a5a125aea4f1edf826dd4897292ba4dc0f1d1b9 (diff)
downloadunexpected-keyboard-49a6a30773087713d9f5b605377115350ee0453a.tar.gz
unexpected-keyboard-49a6a30773087713d9f5b605377115350ee0453a.zip
Add an introduction video in the launcher activity
A video is more intuitive than a written description and doesn't need translations.
Diffstat (limited to 'res')
-rw-r--r--res/layout/launcher_activity.xml21
-rw-r--r--res/raw/intro_video.mp4bin0 -> 123771 bytes
2 files changed, 12 insertions, 9 deletions
diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml
index 99fdf83..c007299 100644
--- a/res/layout/launcher_activity.xml
+++ b/res/layout/launcher_activity.xml
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
- <TextView style="@style/paragraph" android:text="@string/launcher_description"/>
- <Button style="@style/paragraph" android:text="@string/launcher_button_imesettings" android:onClick="launch_imesettings" android:layout_width="wrap_content"/>
- <Button style="@style/paragraph" android:text="@string/launcher_button_imepicker" android:onClick="launch_imepicker" android:layout_width="wrap_content"/>
- <TextView style="@style/paragraph" android:text="@string/launcher_sourcecode"/>
- <TextView style="@style/paragraph" android:text="https://github.com/Julow/Unexpected-Keyboard" android:autoLink="web" android:linksClickable="true"/>
- <TextView android:id="@+id/launcher_tryhere_text" style="@style/paragraph" android:text="@string/launcher_tryhere"/>
- <EditText android:id="@+id/launcher_tryhere_area" style="@style/paragraph" android:inputType="text"/>
-</LinearLayout>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true">
+ <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
+ <TextView style="@style/paragraph" android:text="@string/launcher_description"/>
+ <Button style="@style/paragraph" android:text="@string/launcher_button_imesettings" android:onClick="launch_imesettings" android:layout_width="wrap_content"/>
+ <Button style="@style/paragraph" android:text="@string/launcher_button_imepicker" android:onClick="launch_imepicker" android:layout_width="wrap_content"/>
+ <VideoView android:id="@+id/launcher_intro_video" android:layout_width="240dp" android:layout_height="wrap_content" android:layout_gravity="center"/>
+ <TextView android:id="@+id/launcher_tryhere_text" style="@style/paragraph" android:text="@string/launcher_tryhere"/>
+ <EditText android:id="@+id/launcher_tryhere_area" style="@style/paragraph" android:inputType="text"/>
+ <TextView style="@style/paragraph" android:text="@string/launcher_sourcecode"/>
+ <TextView style="@style/paragraph" android:text="https://github.com/Julow/Unexpected-Keyboard" android:autoLink="web" android:linksClickable="true"/>
+ </LinearLayout>
+</ScrollView>
diff --git a/res/raw/intro_video.mp4 b/res/raw/intro_video.mp4
new file mode 100644
index 0000000..9eefe52
--- /dev/null
+++ b/res/raw/intro_video.mp4
Binary files differ