abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2024-12-15 11:57:01 +0100
committerJules Aguillon2024-12-15 11:57:01 +0100
commitf9c92007db136eefd407198054500cc10ee3cc4b (patch)
tree4ca49c200fee96ea8e3d6fea274997e36989bd35
parent908bb93f82611350411b5bb9790562f9f10a4b79 (diff)
downloadunexpected-keyboard-f9c92007db136eefd407198054500cc10ee3cc4b.tar.gz
unexpected-keyboard-f9c92007db136eefd407198054500cc10ee3cc4b.zip
launcher: Show output of animated gesture
-rw-r--r--res/layout/launcher_activity.xml15
-rw-r--r--res/values/styles.xml22
2 files changed, 31 insertions, 6 deletions
diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml
index 5ab9384..617c9ee 100644
--- a/res/layout/launcher_activity.xml
+++ b/res/layout/launcher_activity.xml
@@ -4,9 +4,18 @@
<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"/>
- <ImageView style="@style/anim" android:id="@+id/launcher_anim_swipe" android:background="@drawable/doc_key_u" android:src="@drawable/doc_anim_swipe"/>
- <ImageView style="@style/anim" android:id="@+id/launcher_anim_circle" android:background="@drawable/doc_key_g" android:src="@drawable/doc_anim_circle"/>
- <ImageView style="@style/anim" android:id="@+id/launcher_anim_round_trip" android:background="@drawable/doc_key_g" android:src="@drawable/doc_anim_round_trip"/>
+ <LinearLayout style="@style/anim_box">
+ <ImageView style="@style/anim" android:id="@+id/launcher_anim_swipe" android:background="@drawable/doc_key_u" android:src="@drawable/doc_anim_swipe"/>
+ <TextView style="@style/anim_text" android:text="7"/>
+ </LinearLayout>
+ <LinearLayout style="@style/anim_box">
+ <ImageView style="@style/anim" android:id="@+id/launcher_anim_circle" android:background="@drawable/doc_key_g" android:src="@drawable/doc_anim_circle"/>
+ <TextView style="@style/anim_text" android:text="G"/>
+ </LinearLayout>
+ <LinearLayout style="@style/anim_box">
+ <ImageView style="@style/anim" android:id="@+id/launcher_anim_round_trip" android:background="@drawable/doc_key_g" android:src="@drawable/doc_anim_round_trip"/>
+ <TextView style="@style/anim_text" android:text="–"/>
+ </LinearLayout>
<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" android:hint="@string/launcher_tryhere_hint" android:importantForAutofill="no"/>
<TextView style="@style/paragraph" android:text="@string/launcher_sourcecode"/>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 56edbde..bf4773d 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -57,11 +57,27 @@
<item name="android:layout_gravity">center</item>
</style>
<style name="anim">
- <item name="android:layout_width">100dp</item>
+ <item name="android:adjustViewBounds">true</item>
+ <item name="android:layout_height">120dp</item>
+ <item name="android:layout_weight">1</item>
+ <item name="android:layout_width">wrap_content</item>
+ </style>
+ <style name="anim_text">
+ <item name="android:layout_gravity">center</item>
<item name="android:layout_height">wrap_content</item>
- <item name="android:layout_marginVertical">16dp</item>
+ <item name="android:layout_marginHorizontal">20dp</item>
+ <item name="android:layout_weight">1</item>
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:textAlignment">center</item>
+ <item name="android:textSize">18dp</item>
+ <item name="android:textStyle">bold</item>
+ </style>
+ <style name="anim_box">
<item name="android:layout_gravity">center</item>
- <item name="android:adjustViewBounds">true</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_marginVertical">16dp</item>
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:orientation">horizontal</item>
</style>
<style name="appTheme" parent="@android:style/Theme.DeviceDefault.DayNight"/>
</resources>