abouttreesummaryrefslogcommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorJules Aguillon2023-03-28 11:22:17 +0200
committerJules Aguillon2023-03-28 11:22:17 +0200
commit35b4e442ab2e2b236e785f52dfa5d59439eb037e (patch)
tree96651e06a5b53f8e02771f5704464a3338d2be5f /res/layout
parentc4de1ec267c9ea062da71674a72c8da5e93bd84a (diff)
downloadunexpected-keyboard-35b4e442ab2e2b236e785f52dfa5d59439eb037e.tar.gz
unexpected-keyboard-35b4e442ab2e2b236e785f52dfa5d59439eb037e.zip
Add a launchable explanatory activity
This activity points to the system settings page for enabling input methods. This is purely a shortcut but is expected by many users. It could be made more useful in the future or hidden whenever the keyboard is enabled.
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/launcher_activity.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml
new file mode 100644
index 0000000..424e98d
--- /dev/null
+++ b/res/layout/launcher_activity.xml
@@ -0,0 +1,6 @@
+<?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" android:padding="16dp">
+ <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/launcher_description"/>
+ <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginVertical="16dp" android:text="@string/launcher_button_imesettings" android:onClick="launch_imesettings"/>
+ <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/launcher_sourcecode" android:autoLink="web"/>
+</LinearLayout>